only enlarge smaller don't work

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
TSchlaier01
Posts: 10
Joined: 2010-03-22T02:57:35-07:00
Authentication code: 8675308

only enlarge smaller don't work

Post by TSchlaier01 »

when Im trying to use the only enlarge smaller option for the resize command
exactly like its shown in the example on http://www.imagemagick.org/Usage/resize/

i receive following error message: invalid argument for option resize

!?

I try it this way:

Code: Select all

-resize 2080x3108\>
Can anyone help me?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: only enlarge smaller don't work

Post by fmw42 »

use < not > to enlarge smaller images see http://www.imagemagick.org/Usage/resize/#enlarge

also you may want to try

-resize "2080x3108<"

If you are on windows, then you need to use different syntax, see http://www.imagemagick.org/Usage/windows/. Escape in windows is ^ not \


What version of IM are you using. Your version may too old for those newer features.
TSchlaier01
Posts: 10
Joined: 2010-03-22T02:57:35-07:00
Authentication code: 8675308

Re: only enlarge smaller don't work

Post by TSchlaier01 »

Fantastic!
It works with

Code: Select all

 -resize 2180x3180^> 
Thank you very much!
Post Reply