Bug 103954 - Support compressed metafile formats WMZ/EMZ
Summary: Support compressed metafile formats WMZ/EMZ
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.2.3.3 release
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard: target:7.4.0
Keywords: difficultyInteresting, easyHack, filter:emf
Depends on:
Blocks: EMF-WMF
  Show dependency treegraph
 
Reported: 2016-11-16 15:13 UTC by Alberto Ferreira
Modified: 2023-06-22 11:24 UTC (History)
7 users (show)

See Also:
Crash report or crash signature:


Attachments
Picture to insert into writer (39.94 KB, application/x-gzip)
2016-11-16 15:13 UTC, Alberto Ferreira
Details
Picture in EMF format (uncompressed from EMZ) (81.52 KB, image/x-emf)
2016-11-16 15:16 UTC, Alberto Ferreira
Details
Writer file with emf picture inserted (50.56 KB, application/vnd.oasis.opendocument.text)
2016-11-16 15:17 UTC, Alberto Ferreira
Details
aron's linked sample (17.94 KB, application/x-gzip)
2017-06-12 17:13 UTC, Yousuf Philips (jay) (retired)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alberto Ferreira 2016-11-16 15:13:06 UTC
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.
Comment 1 Alberto Ferreira 2016-11-16 15:16:14 UTC
Created attachment 128786 [details]
Picture in EMF format (uncompressed from EMZ)
Comment 2 Alberto Ferreira 2016-11-16 15:17:00 UTC
Created attachment 128787 [details]
Writer file with emf picture inserted
Comment 3 Aron Budea 2016-11-17 06:21:08 UTC
Sounds like a legitimate feature request.
Comment 4 Joel Madero 2016-11-17 06:39:38 UTC
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.
Comment 5 Aron Budea 2016-11-17 07:03:29 UTC
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.
Comment 6 Bartosz 2017-05-18 11:32:02 UTC
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?
Comment 7 Aron Budea 2017-05-18 23:51:44 UTC
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).
Comment 8 Yousuf Philips (jay) (retired) 2017-06-12 17:13:33 UTC
Created attachment 133980 [details]
aron's linked sample
Comment 9 Bartosz 2019-03-06 22:41:30 UTC
The EMZ and WMZ implementation will be similar to svgz implementation
https://bugs.documentfoundation.org/show_bug.cgi?id=75487
Comment 10 Justin L 2020-03-04 07:52:12 UTC
Based on comment 9, I would expect this can be classified as a challenging easyhack for someone who is very interested in graphics.
Comment 11 Commit Notification 2022-05-06 02:03:19 UTC
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.
Comment 12 Xisco Faulí 2022-05-06 12:27:33 UTC
I think this should be added to https://wiki.documentfoundation.org/ReleaseNotes/7.4
Comment 13 Michael Warner 2022-05-06 13:59:36 UTC
Based on Comment 11 and Comment 12, I am marking this as resolved fixed.