SRT Rotate creates artifacts if PNG image touches an edge
Posted: 2012-07-26T12:18:24-07:00
Greetings!
The attached image is a basic ellipse shape made in Inkscape, exported as a png file.
When I apply this SRT distort to it:
convert IMbugInput.png +distort SRT "30" IMbugOutput.png
I get the bizarre extra lines upon rotation. A pixel level exam does show that the ellipse goes right to the edge of the image. My workaround (the image in production is literally a thousand times more complex) is just to pad 1px of transparency around the image, then crop it after the rotate.
I am extremely grateful for ImageMagick! I'm amazed at the animations that I'm able to create with it and wanted to share in some small way a means to an minor improvement ... unless, of course, this is a feature *;O)
This same issue happened on your latest release, 6.7.8 which I compiled from source, and from Opensuse 12.1 distro 6.7.2.
I'd be happy to assist if there is anything further I can do.
Thank you!
The attached image is a basic ellipse shape made in Inkscape, exported as a png file.
When I apply this SRT distort to it:
convert IMbugInput.png +distort SRT "30" IMbugOutput.png
I get the bizarre extra lines upon rotation. A pixel level exam does show that the ellipse goes right to the edge of the image. My workaround (the image in production is literally a thousand times more complex) is just to pad 1px of transparency around the image, then crop it after the rotate.
I am extremely grateful for ImageMagick! I'm amazed at the animations that I'm able to create with it and wanted to share in some small way a means to an minor improvement ... unless, of course, this is a feature *;O)
This same issue happened on your latest release, 6.7.8 which I compiled from source, and from Opensuse 12.1 distro 6.7.2.
I'd be happy to assist if there is anything further I can do.
Thank you!