an eqivalent command magicwand and Imagemagick

The MagickWand interface is a new high-level C API interface to ImageMagick core methods. We discourage the use of the core methods and encourage the use of this API instead. Post MagickWand questions, bug reports, and suggestions to this forum.
Post Reply
eholz1
Posts: 10
Joined: 2007-02-04T20:18:17-07:00

an eqivalent command magicwand and Imagemagick

Post by eholz1 »

I have been looking for a command in magickwand for php,
that will do the same thing as this command line entry for ImageMagick

convert spyder.jpg -resize 900x752\> resize_spyder.jpg - in this case the height is the factor I want limited.
the with actually comes out to less than 900 (which is fine) I can run this command by shelling out, but would
prefer to run it within the php code using magickwand.

I want to limit the height of vertical images to 750 (plus or minus) pixels. the max width is 900 px for horizontal images.

I like the way Imagemagick "guesses" at an appropriate image width using the "greater than" or "less than" syntax.

thanks for any info,

eholz1
Post Reply