How to resize and image without loosing quaility image

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
joel_fe

How to resize and image without loosing quaility image

Post by joel_fe »

hello, to everybody:

When a resize images I notice that looses some quality, ¿what can y I do for generate rezised images with the best posible quality?. Actualy im usuing the next command

convert originalimage.jpg -resize 300x300 -quality 100 resizedimage.jpg

I' ll apreciate any help

regards

Joel
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Re: How to resize and image without loosing quaility image

Post by glennrp »

If your image is a "graphic" and not a natural image, try using PNG format instead of JPEG.
etiennesky

Re: How to resize and image without loosing quaility image

Post by etiennesky »

If you're stuck with a jpeg you can use the lossles cropping functionnality of jpegtran, it will retain the exact same quality without anyartifacts after cropping the image to the desired size.

http://sylvana.net/jpegcrop/
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: How to resize and image without loosing quaility image

Post by anthony »

you can not do a lossless resize of a jpeg. resizing is itself a lossy process.
Lossless cropping is posible but only to 8 bit boundaries.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply