I have an automated script that generates image sprites. Long story short, it's failing on 1x# pixel images (that is any image that is one pixel wide).
A very simplified example that gets run:
convert -strip -size 1x66 xc:transparent -draw 'image over 0,0 0,0 "/path/to/foo.png"' /path/to/sprite-1.png
This works fine on 2x#, or #x1 images.
Can't convert 1x# pixel images
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Can't convert 1x# pixel images
The -strip does not make any sense in that position, but it does not seem to make a different if it is their or not.
What does happen, and you did not say, is that the command does not crash, but exits normally. However the image is NOT overlaid on the 1 pixel wide canvas. It does for a one pixel high canvas, but not for a one pixel wide canvas.
BUG is confirmed.
What does happen, and you did not say, is that the command does not crash, but exits normally. However the image is NOT overlaid on the 1 pixel wide canvas. It does for a one pixel high canvas, but not for a one pixel wide canvas.
BUG is confirmed.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
Re: Can't convert 1x# pixel images
I obsserved the same behavior when I used txt instead of png format.
(IM-6.7.3-3)
(IM-6.7.3-3)
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Can't convert 1x# pixel images
I was using show: for output and rose: for input in my own tests
so it is definitely a -draw problem not a file format problem.
Also it works find if you use #x1 sized canvas image instead of 1x#
so it is definitely a -draw problem not a file format problem.
Also it works find if you use #x1 sized canvas image instead of 1x#
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
Re: Can't convert 1x# pixel images
We can reproduce the problem you reported and have a patch in ImageMagick 6.7.3-5 Beta available by sometime tomorrow. Thanks.
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Can't convert 1x# pixel images
Confirmed in the SVN.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/