I'm having a bit of a problem when resizing images down using either convert or mogrify.
The images resize to the correct width/height but it seems some of the bottom of the image is being cropped and replaced with white space. The effect seems to be exaggerated at very small sizes, where sometimes around 10% of the image goes missing.
Does anybody know why this is happening and if there are any workarounds?
Thanks for your help...
Ross
convert/mogrify adding whitespace on some images
Re: convert/mogrify adding whitespace on some images
How about posting your code ?
Re: convert/mogrify adding whitespace on some images
just simple:
convert $source -thumbnail 80x80 $destination
or
convert $source -resize 50x50 $destination
convert $source -thumbnail 80x80 $destination
or
convert $source -resize 50x50 $destination
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: convert/mogrify adding whitespace on some images
Your code is incomplete. What are the formats of $source and $destination?
Also check if the original image that has this problem view ok using "display".
Also check if the original image that has this problem view ok using "display".
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/