It would be useful to have a record of an image's filename that is inserted into a document and this can be done by putting the filename into an image's name alternative field.
Nice idea - thanks. Set to "Inherited from OOo": AFAICR this is as old as Metusalem
can't think of a downside--but probably should limit to just the filename and not retain its full path source or URI/URL Pre-populating the alternative text field with filename (and extension) is reasonable and better than leaving it blank, but the field must remain editable for author to make the alternative more descriptive.
(In reply to V Stuart Foote from comment #2) > can't think of a downside--but probably should limit to just the filename > and not retain its full path source or URI/URL Of course only the filename without path. :D > Pre-populating the alternative text field with filename (and extension) is > reasonable and better than leaving it blank, but the field must remain > editable for author to make the alternative more descriptive. Totally.
*** Bug 35628 has been marked as a duplicate of this bug. ***
Using the file name as a text alternative is a bad practice. Please consult the W3C's Authoring Tool Accessibility Guidelines 2.0: https://www.w3.org/TR/ATAG20/#gl_b23 (unfortunately, the document was never finalised). The proper way of getting text alternatives is prompting for them. See feature request 39558: "ACCESSIBILITY: always prompt for text alternative when inserting picture to create accessible documents by default" at https://bugs.documentfoundation.org/show_bug.cgi?id=39558.
*** Bug 88470 has been marked as a duplicate of this bug. ***
Right now we're just generating a name. That's certainly bad. So, a prompt would "resolve" this; but if the user doesn't want to provide a name, it seems like the filename is a good default. So let's change the default to the (base) filename; and when 39558, the prompt will allow a different choice. What say you?