Re: "Intelligent" resize

Fred Weinhaus <[email protected]>
Newsgroups gmane.comp.video.image-magick.user
Message-ID <p06240801c72c9012697b@[192.168.1.2]>
>The images are in portrait and landscape format. Is it possible that the
>longest side is always 2000 pixels without doing an analysis before with
>identify? Can images with a lower resolution than 2000 be excluded from
>convert?



try

convert image -resize '2000x2000>' result

Since the image must exceed only one of these size limits before 
being resized, it should catch either landscape or portrait and only 
resize if one side is larger than 2000 and the other is smaller than 
2000.

If the image is 2000 in one direction and smaller in the other 
direction, then it will be equal to or smaller in both directions, so 
will not be processed.

Hope this works for you.

Fred
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.