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 »

This is the output of ImageMagick 6.8.9-6 Beta under Windows: https://www.dropbox.com/s/5bggl94mnubpv ... 3000_1.png.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Path distorted when creating transparent PNG

Post by snibgo »

That looks perfect.
snibgo's IM pages: im.snibgo.com
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 »

dlemstra wrote:This is the output of ImageMagick 6.8.9-6 Beta under Windows: https://www.dropbox.com/s/5bggl94mnubpv ... 3000_1.png.
Perfect! When will the 6.8.9-6 leave Beta status? :-)
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 »

You can expect a new release within a couple of days.
.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 »

Excellent! ;-)
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 »

Sorry I have to bring up this thread again. But the clipping path ist still handled incorrectly on some images when creating a PNG with transparency.

Here is an example image:

https://cloud.netgroup.de/public.php?se ... 7769e4b007

This is the command I used:

convert 02053044.jpg -alpha transparent -clip -alpha opaque -strip 02053044.png

And this is the resulting image:

https://cloud.netgroup.de/public.php?se ... 3a87c925e8

I used the latest release for Windows (6.8.9-7 Q16).

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 »

Hi!

I did a little more testing and under Linux with the same release 6.8.9-7 Q16 the problem does NOT occour on the images mentioned in the last post. But on other images it does occour under Linux as well:

This image has the same problem with convert on Windows and on Linux:

https://cloud.netgroup.de/public.php?se ... 0d6e870c71

Here is the result from Linux

https://cloud.netgroup.de/public.php?se ... 397ced0999

And here from Windows:

https://cloud.netgroup.de/public.php?se ... 29b08a05f6

This is all weired :-(

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 »

The problem seems to occour only in the 64bit release. With the 32bit release for Windows both images are converted correctly.

Thanks to user "zaratol" who pointed me to:

viewtopic.php?f=3&t=25883

JD
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 am getting the following output in the latest IM6 beta: https://www.dropbox.com/sh/4087t9nkl1g7 ... cgvNa?dl=0. I have fixed the 64 bit issue as reported in the other topic you linked.

p.s. What is the name of that pan in my folder?
.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 »

The spoon has a minor error at rightmost edge of the handle. But everything else looks pretty good :-)

PS: The pan is a so called "Multi roaster" from the "ZWILLING® Plus" series (http://www.zwilling.com/en/cookware-ser ... tml?page=2)
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 found some more images on which even the 32bit release does not work perfect:

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

Maybe they can help tracking the issue.
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 »

Is it possible that the clippath is incorrect for those images?
.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 »

Hmmm ... but in Photoshop the path is correct on both images.
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 »

Can you also show the path from photoshop?
.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 »

dlemstra wrote:Can you also show the path from photoshop?
Not sure what you mean. Create a transparent PNG with Photoshop?
Post Reply