Hi!
I want to convert a number of images to the same size.
for example: maximum 550 x 550 pixels
but
I don't want to do anything if the original image is smaller than 550 pixels
Is it possible with ImageMagick?
(or should I handle this in some other way?)
//Jan
Convert or don't convert (solved)
Convert or don't convert (solved)
Last edited by Albireo on 2010-02-08T07:43:15-07:00, edited 1 time in total.
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Convert or don't convert
Code: Select all
convert input.jpg -resize "500x500^" output.png
I use Windows, and ^ is a special character, so I need the quotes.
snibgo's IM pages: im.snibgo.com
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Convert or don't convert
For "caret" in the above, read "greater than" (>).
That will teach me not to post in a hurry.
Code: Select all
convert input.jpg -resize "500x500>" output.png
snibgo's IM pages: im.snibgo.com
Re: Convert or don't convert
Thank you!snibgo wrote:For "caret" in the above, read "greater than" (>).That will teach me not to post in a hurry.Code: Select all
convert input.jpg -resize "500x500>" output.png
Hmmm, I thought that the size always resize to the desired size
//Jan
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Convert or don't convert (solved)
not unless you add exclamation !Hmmm, I thought that the size always resize to the desired size
see http://www.imagemagick.org/script/comma ... p#geometry