This tutorial covers resizing using PHP with Image Magick from the command line. For more information on PHP variables see Lesson I on making backgrounds. | |||||||||||
| |||||||||||
ORIGINAL IMAGE | |||||||||||
<? $IN="button.gif"; $OUT="button2.gif"; $SIZE="-resize 50%"; exec ("/usr/bin/convert $IN $SIZE $OUT"); ?> | |||||||||||
<? $IN="button.gif"; $OUT="button2.gif"; $SIZE="-resize 100"; exec ("/usr/bin/convert $IN $SIZE $OUT"); ?> | |||||||||||
<? $IN="button.gif"; $OUT="button2.gif"; $SIZE="-resize 100x100!"; exec ("/usr/bin/convert $IN $SIZE $OUT"); ?> | |||||||||||