Convert convert syntax to PHP (ImageMagick) -


i'm new whole imagemagick php library. need port function php using imagemagick:

convert staticmap.png -gaussian-blur 10      \( -size 300x600 gradient:'rgba(255,255,255,0.9)'-'rgba(255,255,255,0.1)' -rotate 270 \)      -gravity north -compose on -composite output.png  

or give output:

gradient map

i can't use shell_exec have because i'm running on google app engine , don't think function enabled.

is there easier way desired result? want blur it, too, think can figure part out.

edit: found better way on command line. that'll conversion php?

this easy cli options map directly imagickmagick.

<?php /* convert */ // staticmap.png $staticmap = new imagick('staticmap.png'); // -gaussian-blur 10x0 $staticmap->gaussianblurimage(10, 0); // -size 300x600 gradient:'rgba(255,255,255,0.9)'-'rgba(255,255,255,0.1)' $mask = new imagick(); $mask->newpseudoimage(300, 600, 'gradient:rgba(255,255,255,0.9)-rgba(255,255,255,0.1)'); //  -rotate 270 $mask->rotateimage('black', 270); // -gravity north $staticmap->setgravity(imagick::gravity_north); // -compose on -composite $staticmap->compositeimage($mask, imagick::composite_over, 0, 0); // output.png  $staticmap->writeimage('output.png'); 

convert convert syntax php