Created attachment 128785 [details] Picture to insert into writer Description: After open a blank Write Document I can't insert a picture with file extension EMZ. If a uncompress the file to EMF, I can insert it to a write document. I think that the function to support EMZ picture is missing. The EMZ is a compressed picture file of a emf. Thanks.
Created attachment 128786 [details] Picture in EMF format (uncompressed from EMZ)
Created attachment 128787 [details] Writer file with emf picture inserted
Sounds like a legitimate feature request.
Alberto - just a heads up that enhancements are handled entirely by volunteers. That being said, although this is a valid request, a volunteer with some serious skills and some serious time would have to find it interesting enough to implement. This could happen relatively fast, or it might never happen. To be perfectly frank, I suspect that if this were ever to be implemented it'd be at least a year or two away.
Is it so difficult? EMF code is already there, compression/decompression is likely also already there, seems like wiring these together and adding info for the new formats is needed. Then again, I have zero idea how much work that takes, but these are not completely new formats to handle.
Could you please attach some more examples of emz and wmz files? I don't have application to generate such files. What kind of application are you using to generate that files? If is possible to create such files with EMF+ format inside .emf?
Another sample: https://community.spiceworks.com/topic/98059-image005-emz-what-program-i-need-on-a-windows-7-system-to-open-this-photo I think gzipped emf/wmf files are adequate samples (even if they aren't authentic).
Created attachment 133980 [details] aron's linked sample
The EMZ and WMZ implementation will be similar to svgz implementation https://bugs.documentfoundation.org/show_bug.cgi?id=75487
Based on comment 9, I would expect this can be classified as a challenging easyhack for someone who is very interested in graphics.
offtkp committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/e9c50fbbc3b07ef927d133da9cf2395c55611e0f tdf#103954: Z compressed graphic formats support for EMF/WMF It will be available in 7.4.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 think this should be added to https://wiki.documentfoundation.org/ReleaseNotes/7.4
Based on Comment 11 and Comment 12, I am marking this as resolved fixed.