option requires an argument `-resize'

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
unusable
Posts: 2
Joined: 2014-05-04T06:09:25-07:00
Authentication code: 6789

option requires an argument `-resize'

Post by unusable »

I've spent hours trying to get the command line working and it seems impossible. This is not simple at all, for something that should be...

I've installed the latest version and trying to run the following:

convert IMG_3899.jpg -resize 1000x1500

Any variations of this just result in:

convert.exe: option requires an argument `-resize' @ error/convert.c/ConvertImageCommand/2502.

Second of all, how can I maintain the Adobe colour profile? If I resize in the app, it loses lots of colour.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: option requires an argument `-resize'

Post by snibgo »

You need an output filename at the end of the command. This can be the same as the input filename.
snibgo's IM pages: im.snibgo.com
unusable
Posts: 2
Joined: 2014-05-04T06:09:25-07:00
Authentication code: 6789

Re: option requires an argument `-resize'

Post by unusable »

Great. Not sure why that wasn't in any of the doco I looked at. Would have saved lots of time.

Looks like the colour profile is being kept too which is good.
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: option requires an argument `-resize'

Post by Bonzo »

In later versions of IM the colour profile is also kept in -thumbnail but most other data is stripped; resulting in a smaller file.
Post Reply