This tutorial covers some some functions using PHP with Image Magick from the command line. I called it Illustrate because FX (as the button at IM states) is another function altogether, not included here. |
<? $IN="SGind.jpg"; $ILLUSTRATE="-charcoal 2"; $OUT="SGindCH.jpg"; exec ("/usr/bin/convert $IN $ILLUSTRATE $OUT"); ?> | ORIGINAL |
CHARCOAL |
<? $IN="SGpattern.jpg"; $ILLUSTRATE="-implode 2"; $OUT="SGpatternimp.jpg"; exec ("/usr/bin/convert $IN $ILLUSTRATE $OUT"); ?> | ORIGINAL |
IMPLODE |
<? $IN="SGdoor.jpg"; $ILLUSTRATE="-paint 1"; $OUT="SGdoorPnt.jpg"; exec ("/usr/bin/convert $IN $ILLUSTRATE $OUT"); ?> | ORIGINAL |
OIL PAINT |
<? $IN="SGfish.jpg"; $ILLUSTRATE="-sepia-tone 65%"; $OUT="SGfishSep.jpg"; exec ("/usr/bin/convert $IN $ILLUSTRATE $OUT"); ?> | ORIGINAL |
SEPIA TONE |
<? $IN="SGind.jpg"; $ILLUSTRATE="-sketch 24x8+45"; $OUT="SGindSkt.jpg"; exec ("/usr/bin/convert $IN $ILLUSTRATE $OUT"); ?> | ORIGINAL |
SKETCH |
<? $IN="SGstar.jpg"; $ILLUSTRATE="-solarize 10%"; $OUT="SGstarSol.jpg"; exec ("/usr/bin/convert $IN $ILLUSTRATE $OUT"); ?> | ORIGINAL |
SOLARIZE |
<? $IN="SGpattern.jpg"; $ILLUSTRATE="-swirl 500"; $OUT="SGpatternSwirl.gif"; exec ("/usr/bin/convert $IN $ILLUSTRATE $OUT"); ?> | ORIGINAL |
SWIRL |
<? $IN="SGlilac.jpg"; $ILLUSTRATE="-fill firebrick -tint 60% "; $OUT="SGlilacTint.jpg"; exec ("/usr/bin/convert $IN $ILLUSTRATE $OUT"); ?> | ORIGINAL |
TINT |
<? $IN="SGfish.jpg"; $ILLUSTRATE="-vignette 15x5+10+10%"; $OUT="SGfishVig.gif"; exec ("/usr/bin/convert $IN $ILLUSTRATE $OUT"); ?> | ORIGINAL |
VIGNETTE |
<? $IN="SGlion.jpg"; $ILLUSTRATE="matte -background none -wave 10x50"; $OUT="SGlionWave.gif"; exec ("/usr/bin/convert $IN $ILLUSTRATE $OUT"); ?> | ORIGINAL |
WAVE |
PAGE 2 |