When opening a PDF in Draw with PDFium support (with env var LO_IMPORT_USE_PDFIUM=1), it will open the PDF showing one PDF page per Draw page . Tiff format can also contain multiple images and it would be great if Draw can support opening such Tiff image where each image will be shown in its own Draw page.
The opening of the Tiff file is handled in . The way how this is implemented for PDF is located at . Probably this also needs extending the way how we handle and store multiple images for the tiff file inside Graphic object, so it is similarly handled as a PDF format.
I think right now that a multi image tiff is imported as a Graphic with IsAnimated() set to true and each image as an animation frame.
So could use Graphic::GetAnimation().Count() for count of images with Graphic::GetAnimation().Get(index).maBitmapEx to get each of the individual images out of it
Created attachment 187633 [details]
Multi-page TIFF with 16 pages
Here is a sample multi-page TIFF provided by vimal7370, a user at the Collabora forums who first brought up this issue:
Opening this TIFF in LO Draw only leads to a single page shown.
Pushed a patch: https://gerrit.libreoffice.org/c/core/+/152550
The final patch: https://gerrit.libreoffice.org/c/core/+/152693
rash419 committed a patch related to this issue.
It has been pushed to "master":
tdf#155444 added support for multi image tiff file
It will be available in 24.2.0.
The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
Affected users are encouraged to test the fix and report feedback.
I see the example tiff opens in draw now with multiple pages
*** Bug 63722 has been marked as a duplicate of this bug. ***
(In reply to Commit Notification from comment #5)
> It will be available in 24.2.0.
What about is this version?
I have LO 18.104.22.168
Only bugfixes go into LibreOffice 7.5 - this is new functionality.
Well besides I do not understand, why not opening a tiff file completely is not valued as a bug, I'm still not able to contextualise version 24.2.0 in relation to 7.5.
(In reply to Ulf Zibis from comment #10)
> Well besides I do not understand, why not opening a tiff file completely is
> not valued as a bug, I'm still not able to contextualise version 24.2.0 in
> relation to 7.5.
Bug is when the code implementing the behavior is there, but isn't working correctly. Feature is when the code isn't there at all.
24.2.0 is the version in development, to be released in February 2024 (ie. in the version number 24 corresponds to 2024, and 2 corresponds to February). Daily builds are already available, I wouldn't suggest those for production use in general, but they should be perfectly fine for checking out a new feature or a fix.