mogrify ignores command

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
ridera

mogrify ignores command

Post by ridera »

My simple resize command on a jpg 640x760 is ignored.

/usr/local/bin/mogrify /home/xxxxx/public_html/test/epdata/cuttle.jpg -debug exception -format jpg -resize 600

Error code=> 0

/usr/local/bin/mogrify -version shows this:
Version: ImageMagick 6.2.8 08/09/06 Q16 http://www.imagemagick.org

I've changed the file name to force an error and the command reports the error just fine.

I've also set the file permissions to 777 on a Linux system, didn't help. The file reads just fine using php code.

Anyone have the slightest clue?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

Try this instead:
  • /usr/local/bin/mogrify -debug exception -resize 600 /home/xxxxx/public_html/test/epdata/cuttle.jpg
ridera

Post by ridera »

That works. And I missed the obvious example right at the top of the mogrify page.

Here's what threw me. The doc says:
The Anatomy of the Command Line

The ImageMagick command line consists of

1. one or more required input filenames.
2. zero, one, or more image settings.
3. zero, one, or more image operators.
4. zero, one, or more image sequence operators.
5. zero, one, or more image stacks.
6. zero or one output image filenames (required by convert, composite, montage, compare, import, and conjure).


Shouldn't items 1 and 6 be switched?
1. zero or more input image filenames (required by convert, composite, montage, compare, import, and conjure).
.
.
6. one output image filename
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony »

the order of all except the last one can be switched around and even interleaved.
It is just specifying what sort of things can appear, not their order.

For an actual example of how things are processed see...
http://www.cit.gu.edu.au/~anthony/graph ... s/#example
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply