This project has moved. For the latest updates, please go here.

Clipping path difference

Jun 6, 2014 at 1:10 PM
Edited Jun 6, 2014 at 1:11 PM
I'm trying to create a transparent pdf from a tif file with a clipping path.
using (MagickImage image = new MagickImage(@"c:\test.tif"))
{
image.Alpha(AlphaOption.Transparent);
image.Clip();
image.Alpha(AlphaOption.Opaque);
image.Write("c:\\test.pdf");
}
This almost works, but the clip path itself differs from how it was created in photoshop.

Example 1 from photoshop
Example 2 from photoshop

Resulting PDF

test.tif

Can anyone explain why this happens?
Coordinator
Jun 6, 2014 at 10:34 PM
This looks like a bug in ImageMagick. I think this should be the correct output: https://www.dropbox.com/sh/nm80nplm8obn75k/AACdQpt_vbb28xAFcu27cXOga. Can you confirm this?
Jun 6, 2014 at 10:43 PM
Yes, that looks correct.
Coordinator
Jun 7, 2014 at 7:42 AM
Edited Jun 7, 2014 at 7:55 AM
I just submitted a patch to the SVN repository of ImageMagick. This problem will be fixed in the next release of Magick.NET. I contacted you trough Codeplex to ask you if you are interested in a development build that includes this fix.
Jun 7, 2014 at 9:22 AM
Great!

I would love to have a dev build, if it not too much hassle.
I'm using Q16 x86 6.8.9.101 at the moment.

Thanks,
Erlend