Page 1 of 1

mogrify ignores command

Posted: 2007-01-25T16:03:12-07:00
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?

Posted: 2007-01-25T16:32:47-07:00
by magick
Try this instead:
  • /usr/local/bin/mogrify -debug exception -resize 600 /home/xxxxx/public_html/test/epdata/cuttle.jpg

Posted: 2007-01-25T18:02:27-07:00
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

Posted: 2007-01-28T20:32:17-07:00
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