Hi all,
I would like to crop and convert a 501x501 png into a 500x500 gif file.
I only want to crop and not re-size as I only want to get rid of the last row and column pixel.
When I try this command:
convert image.png -crop 500x500+0+0 new_image.gif
This gives me a 501x501 gif.
So I tried this:
convert image.png -crop 500x500+0+0 new_image.png
This gives me a 500x500 png.
Now, if I do this:
convert new_image.png new_image.gif
I still end up with a 501x501 gif file.
I must be missing something.
Thanks for your help!
Jerome.
convert -crop png into gif
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: convert -crop png into gif
remove the virtual canvas using +repage
convert image.png -crop 500x500+0+0 +repage new_image.gif
see http://www.imagemagick.org/Usage/crop/#crop_repage
convert image.png -crop 500x500+0+0 +repage new_image.gif
see http://www.imagemagick.org/Usage/crop/#crop_repage
Re: convert -crop png into gif
Thanks!
That worked like a charm.
Jerome.
That worked like a charm.
Jerome.