Resize: To do nothing for the "Only Shrink Large

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
zenofo
Posts: 2
Joined: 2012-09-19T14:13:38-07:00
Authentication code: 67789

Resize: To do nothing for the "Only Shrink Large

Post by zenofo »

The original image:
http://www.tiaoyue.com/img/_test/original.jpg
Size:100x100 2,457 bytes

Try to get a thumbnail:

Code: Select all

convert http://www.tiaoyue.com/img/_test/original.jpg -thumbnail 200x200\> SecondaryCompression.jpg
Or in Windows:

Code: Select all

convert http://www.tiaoyue.com/img/_test/original.jpg -thumbnail 200x200^> SecondaryCompression.jpg
Get the file:
SecondaryCompression.jpg
2,452 bytes

Can I get the target file(SecondaryCompression.jpg) with out secondary compression,only copy of original image?(2,457 bytes of the image)


Reference:
http://www.imagemagick.org/Usage/resize/#shrink
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Resize: To do nothing for the "Only Shrink Large

Post by fmw42 »

by using IM, it will decompress and recompress the image since both the input and output are jpgs. I do not think you can avoid this with jpg.
Post Reply