EMF clipping of bitmaps is broken

Bug #1419926 reported by David Mathog
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Medium
David Mathog

Bug Description

Follow-up report to:
Bug #1419686 “emf-export renders transparent image areas black”

EMF output support for clipping of paths is working fairly well but it seems that clipping of bitmaps is broken. Moreover, clipping of paths also breaks if the same clipping object clips an image. Examples attached.

This is trunk revision 13841.

Revision history for this message
David Mathog (mathog) wrote :
su_v (suv-lp)
tags: added: bitmap clipping emf exporting
description: updated
Revision history for this message
David Mathog (mathog) wrote :
Revision history for this message
David Mathog (mathog) wrote :
Revision history for this message
David Mathog (mathog) wrote :

Fix committed in revision 13914. Clipping export now works in EMF for text, paths, gradients, and images. One level of clipping only though!

Note, WMF does not export clipping at all. WMF support for clipping is so limited, and the need to export to WMF so rare, that it wasn't worth the effort. Clipped objects may be imported via WMF.

Revision history for this message
David Mathog (mathog) wrote :

I fixed these clipping issues in trunk. If the OP builds from revision 13914 or higher it should be possible to use clipping to emulate the transparency effect in the first example.

Revision history for this message
su_v (suv-lp) wrote :

Adding tag 'backport-proposed' for the stable release branch <lp_inkscape/0.91.x> (needs testing).

Changed in inkscape:
importance: Undecided → Medium
milestone: none → 0.92
status: New → Fix Committed
tags: added: backport-proposed
su_v (suv-lp)
Changed in inkscape:
assignee: nobody → David Mathog (mathog)
Revision history for this message
Martin Owens (doctormo) wrote :

This patch is already in 0.92

tags: removed: backport-proposed
Bryce Harrington (bryce)
Changed in inkscape:
status: Fix Committed → Fix Released
Revision history for this message
Matthew Swabey (mattaw) wrote :

Unfortunately this bug doesn't appear squashed:

Workflow is Inkscape 0.92.0 r15299 --emf--> Word 2016.

Attached is a zip of an SVG, EMF and PNG screen clip of result.

Of course it could be Word that is broken but I can't figure that out with my current skill level.

Revision history for this message
David Mathog (mathog) wrote :

Trunk r15387 works correctly for me, see reduced size test case.

Try that sample, just in case, although I expect it will also fail with the Inkscape version you used. My best guess is that the 0.92.0 version you have does not have this patch. Bryce or Martin, please test with your 0.92.0 release versions and post the revision number on it if it works.

Revision history for this message
David Mathog (mathog) wrote :
Revision history for this message
Matthew Swabey (mattaw) wrote :

So danced the dance and you were right.

0.92.0 r15299 svg --emf--> word of reduced size test: Fail, clipping not applied.
Your clip_test.emf --> word test: Success, clipping applied.

I await instructions as I don't want to bootstrap an Inkscape build environment on my windows box unless I really really have to as it will probably be an awful hassle due to Microsoft reasons.

Revision history for this message
Matthew Swabey (mattaw) wrote :

Any thoughts on the best way to proceed to get a fixed version?

Revision history for this message
David Mathog (mathog) wrote :

Try

   http://download.tuxfamily.org/inkscape/

The most recent 32 bit version is

   inkscape-0.92.x-15346-win32.7z

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.