Bug 153403 - FILEOPEN FILESAVE PPTX: Alt Text field of image is lost on open in LO
Summary: FILEOPEN FILESAVE PPTX: Alt Text field of image is lost on open in LO
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
7.5.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: accessibility, filter:pptx
: 153404 (view as bug list)
Depends on:
Blocks: a11y, Accessibility
  Show dependency treegraph
 
Reported: 2023-02-06 02:07 UTC by Luke
Modified: 2023-11-08 10:29 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Example PPTX with Alt Text Tag (41.41 KB, application/vnd.openxmlformats-officedocument.presentationml.presentation)
2023-02-06 02:24 UTC, Luke
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luke 2023-02-06 02:07:52 UTC
Steps to reproduce:
1. Open Accessibility-native.pptx in Impress
2. Right click on image
3. Description -> Text Alternative

Expected Results:
1. Text Alternative = "ImAltText"

Actual Results:
1. Text Alternative = Blank

Key OOXML:
<p:cNvPr title="ImAltText" name="ImName" id="2" descr="ImDescW">

like Bug 148952 we do not handle title="ImAltText" on import.
Comment 1 Luke 2023-02-06 02:24:53 UTC
Created attachment 185138 [details]
Example PPTX with Alt Text Tag
Comment 2 m_a_riosv 2023-02-06 17:57:21 UTC
*** Bug 153404 has been marked as a duplicate of this bug. ***
Comment 3 Julien Nabet 2023-02-06 20:13:23 UTC
On pc Debian x86-64 with master sources updated today, I could reproduce this.

Not only it doesn't import the alternative text but also, it doesn't export the attribute.
Indeed, when unzipping the file, we can see in ppt/slides/slide1.xml 
there's this at the beginning:
<p:cNvPr id="2" name="ImName" descr="ImDescW" title="ImAltText">

but after having exported the file, the "title" attribute is removed.

Regina: I may be wrong but wrong but it seems it's because oox::drawingml::Shape doesn't have this attribute.
Comment 4 Luke 2023-02-07 04:18:11 UTC
FILESAVE Steps to reproduce from Bug 153404 
1. In Impress save Accessibility.odp as pptx (2007-365) 
2. Close
3. Open pptx
4. Right click on image
5. Description -> Text Alternative

Expected Results:
1. Text Alternative = "ImAltText"

Actual Results:
1. Text Alternative = Blank

the exported OOXML
reads:
<p:cNvPr name="ImName" id="41" descr="ImDesc"/>
when it should read:
<p:cNvPr title="ImAltText" name="ImName" id="2" descr="ImDescW">

like Bug 148952 we do not handle title="ImAltText" on import.