[Libreoffice-bugs] [Bug 126708] EMF image lost in command-line conversion from .odt to .doc

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Aug 6 13:21:03 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=126708

Luke Deller <luke at deller.id.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|libreoffice-bugs at lists.free |luke at deller.id.au
                   |desktop.org                 |

--- Comment #3 from Luke Deller <luke at deller.id.au> ---
Thanks Xisco, that is really helpful!

I think the trouble is that we cannot get the size of the EMF when it is not
properly loaded yet ("swapped in").  Tomaž' change means that the image will be
swapped out until we scroll to the page, which doesn't happen when not using
the GUI!

Other image formats work because we have some code to sniff the image size from
the first few bytes of the file without fully loading it.
(in vcl/source/filter/graphicfilter2.cxx in GraphicDescriptor::Detect)

Adding a proper implementation of GraphicDescriptor::ImpDetectEMF in
vcl/source/filter/graphicfilter2.cxx seems to fix the problem for me.  I'll try
to get a cppunit test case working and then submit a patch.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190806/b1b80ef2/attachment.html>


More information about the Libreoffice-bugs mailing list