Resized images have jagged \ sawtooth edges
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
What is the IM version on your ISP. It looks like it is not anti-aliasing the resized pixels correctly. Probably a very old version.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
It looks like no anti-aliasing was used during the resize, but anti-aliasing is turned on by deafault for a very long time in IM.
The only other time I have seen images like this is when I set wrong WIDTH and HEIGHT attributes on the <IMG> html tag (the browsers don't anti-alias image they resize).
The only other thing I can think of is perhaps it is a problem of too many colors in GIF, but GIF generally has enough colors (256) so that it isn't this bad, becided you are using JPEG.
PS: I would use a -size for JPEG that is at least double the final resize size
just to be sure it is resize that gives the final image size and not the JPEG library.
Hmmm could the JPEG library on the ISP me very old?
The only other time I have seen images like this is when I set wrong WIDTH and HEIGHT attributes on the <IMG> html tag (the browsers don't anti-alias image they resize).
The only other thing I can think of is perhaps it is a problem of too many colors in GIF, but GIF generally has enough colors (256) so that it isn't this bad, becided you are using JPEG.
PS: I would use a -size for JPEG that is at least double the final resize size
just to be sure it is resize that gives the final image size and not the JPEG library.
Hmmm could the JPEG library on the ISP me very old?
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/