Bug 87408 - Image filename should be used as title (aka name alternative)
Summary: Image filename should be used as title (aka name alternative)
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: Other All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: accessibility
: 35628 88470 (view as bug list)
Depends on:
Blocks: a11y, Accessibility Images
  Show dependency treegraph
 
Reported: 2014-12-17 12:23 UTC by Yousuf Philips (jay) (retired)
Modified: 2023-09-25 21:56 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yousuf Philips (jay) (retired) 2014-12-17 12:23:42 UTC
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.
Comment 1 Cor Nouws 2014-12-17 17:01:09 UTC
Nice idea - thanks.
Set to "Inherited from OOo": AFAICR this is as old as Metusalem
Comment 2 V Stuart Foote 2016-10-17 13:58:55 UTC
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.
Comment 3 Yousuf Philips (jay) (retired) 2017-05-03 17:16:08 UTC
(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.
Comment 4 Yousuf Philips (jay) (retired) 2017-09-24 22:38:15 UTC
*** Bug 35628 has been marked as a duplicate of this bug. ***
Comment 5 Christophe Strobbe 2018-10-22 15:01:25 UTC
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.
Comment 6 V Stuart Foote 2019-06-28 19:22:18 UTC
*** Bug 88470 has been marked as a duplicate of this bug. ***
Comment 7 Eyal Rozenberg 2023-09-25 21:56:33 UTC
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?