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 [1]. The way how this is implemented for PDF is located at [2]. 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. [1] https://cgit.freedesktop.org/libreoffice/core/tree/sd/source/filter/grf/sdgrffilter.cxx [2] https://cgit.freedesktop.org/libreoffice/core/tree/vcl/source/filter/ipdf/pdfread.cxx:348
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. https://cgit.freedesktop.org/libreoffice/core/tree/vcl/source/filter/itiff/itiff.cxx#n333 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: https://forum.collaboraonline.com/t/tiff-file-with-multiple-pages-only-shows-first-page/1820 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": https://git.libreoffice.org/core/commit/1c47cd54da5f193f4b27cf86ef167c8a415c0408 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: https://wiki.documentfoundation.org/Testing_Daily_Builds 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 7.5.4.2
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.
In release notes: https://wiki.documentfoundation.org/index.php?title=ReleaseNotes%2F24.2&type=revision&diff=730913&oldid=730903 Verified in: Version: 24.2.0.2 (X86_64) / LibreOffice Community Build ID: b1fd3a6f0759c6f806568e15c957f97194bbec8f CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3 Locale: en-AU (en_AU.UTF-8); UI: en-US Calc: threaded Thanks Padia Rashesh! (Can you please check I've got your name in the right order in the release notes?)