How to use -magnify?

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
holden
Posts: 79
Joined: 2013-02-07T08:22:57-07:00
Authentication code: 6789

How to use -magnify?

Post by holden »

This bit of code gives me an error:

Code: Select all

convert image.png -magnify imagebig.png
I get this:
convert: unrecognized option `-magnify' @ error/convert.c/ConvertImageCommand/2030.
From what I can tell no value is needed after the -magnify command, based on the limited info availble here and in the manual. I only want to do a 2x scale. Thanks!
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: How to use -magnify?

Post by snibgo »

It works fine for me, IM v6.9.0-0. Perhaps your version is too old.
snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How to use -magnify?

Post by fmw42 »

How old is your version of IM? It may need a more current version of IM. Please, when posting a questions, always identify you version of IM and platform.
aigo
Posts: 29
Joined: 2017-06-26T12:02:47-07:00
Authentication code: 1151

Re: How to use -magnify?

Post by aigo »

trying to use the same command by OP on IM version 7.0.06-0 and still get the same error. Is it discontinued in this version or an alternative exists? Please help!
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How to use -magnify?

Post by fmw42 »

Works fine for me on IM 6.9.8.10 Q16 non-HDRI Mac OSX and IM 7.0.6.1 Q16 HDRI Mac OSX. The -magnify option was created in more recent versions of ImageMagick, although I cannot find a record where that started in the changelog. So it won't work on very old versions of IM 6.

It works fine in IM 7, but note you need to use "magick" rather than "convert"
aigo
Posts: 29
Joined: 2017-06-26T12:02:47-07:00
Authentication code: 1151

Re: How to use -magnify?

Post by aigo »

Thanks...Just seeing this reply, eventually had to call a script implementing the xBR algorithm. awesome result!
Post Reply