Path distorted when creating transparent PNG

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Path distorted when creating transparent PNG

Post by dlemstra »

I don't know if is possible but I mean if you could show the clipmask (dotted lines?) or the actual svg as it is shown in Photoshop so we can see where our svg file is different.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Path distorted when creating transparent PNG

Post by fmw42 »

If he can post a link to the PSD file, perhaps I can do what you need, Dirk.
jd.wiese
Posts: 28
Joined: 2012-11-21T00:14:48-07:00
Authentication code: 6789

Re: Path distorted when creating transparent PNG

Post by jd.wiese »

Hi!

I don't have a PSD file, only a TIF or JPEG with a path. I have uploaded two screenshots from Photoshop:

https://www.dropbox.com/sh/rbn8vvp20n5i ... ggFoa?dl=0

On the screenshots you see two images opened in PS. On the left side the PNG created with ImageMagick with a small error at the tip of the blade. On the right side the JPEG with the path. In the first screenshot the path is not selected, in the second one the path is selected.

JD
jd.wiese
Posts: 28
Joined: 2012-11-21T00:14:48-07:00
Authentication code: 6789

Re: Path distorted when creating transparent PNG

Post by jd.wiese »

I've added two more screenshots to the dropbox above. On this image there is not only the "bulb" on the right side of the blade but on the left side the transparency is also not as close to the blade as the path is.
zaratol
Posts: 43
Joined: 2010-04-21T08:30:43-07:00
Authentication code: 8675308

Re: Path distorted when creating transparent PNG

Post by zaratol »

i extracted svg with current version and with really old imageMagick Version 6.7.2-10

Since path to svg routines have changed significant the resulting svg coordinates can not be compared diretcly but the displayed result can.

current svg: http://home.arcor.de/durius.obsidian/imageMagick.svg
old svg: http://home.arcor.de/durius.obsidian/imageMagickOld.svg
Image

Rendering of SVG was done in Inkscape.
To be sure it is not a render Problem, the svg looks the the same in Illustrator and Firefox, Internet Explorer 11
jd.wiese
Posts: 28
Joined: 2012-11-21T00:14:48-07:00
Authentication code: 6789

Re: Path distorted when creating transparent PNG

Post by jd.wiese »

Thank you very much for the explanation!

Any idea when this issue will be fixed? Is there anything I can do to help?
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Path distorted when creating transparent PNG

Post by dlemstra »

I just committed a patch to our svn repository. The changes will be available in the next release (6.8.9-8). I have the following output images: https://www.dropbox.com/sh/4087t9nkl1g7 ... cgvNa?dl=0
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
jd.wiese
Posts: 28
Joined: 2012-11-21T00:14:48-07:00
Authentication code: 6789

Re: Path distorted when creating transparent PNG

Post by jd.wiese »

Perfect! All images are looking correct now :-)

Where these images converted with the 32bit or 64bit version of ImageMagick? Are there still differences between the 32bit and 64bit version of ImageMagick?

Is the release date for the new version already known?

Thank you very much for your support!
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Path distorted when creating transparent PNG

Post by dlemstra »

The problem with the 64 bit version of ImageMagick has been fixed (see the other topic). We don't have a release date yet, it might take a couple of weeks.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
Post Reply