[Bug 63944] New: Support alternative text for Escher images

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 63944] New: Support alternative text for Escher images

Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63944

            Bug ID: 63944
           Summary: Support alternative text for Escher images
           Product: POI
           Version: unspecified
          Hardware: PC
                OS: Mac OS X 10.1
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HWPF
          Assignee: [hidden email]
          Reporter: [hidden email]
  Target Milestone: ---

Hello, when reading the Escher constructor for the
org.apache.poi.hwpf.usermodel.Picture object, there is this TODO:

"TODO We need to pass in the PICF data too somehow!"

We would like to request the ability to extract the alternative from Escher
images. It looks like this functionality was added as part of 44937 , however
support for getting the description appears to be out-scoped.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 63944] Support alternative text for Escher images

Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63944

--- Comment #1 from Branden Visser <[hidden email]> ---
To clarify, currently, if we run:

org.apache.poi.hwpf.usermodel.Picture.getDescription()

For a picture that is an Escher image, a NullPointerException is thrown:

java.lang.NullPointerException
        at
org.apache.poi.hwpf.usermodel.Picture.getDescription(Picture.java:471)

.. using POI 4.1.1.

This is because the image was an escher image and did not have its PICF data
initialized, as per the TODO comment.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]