I am wondering about the effectiveness of my php script.

The goal is to produce something that is printable at 300 DPI

Are my commandline options appropriate?

$return_cal_png = exec('export set PATH=/godaddypath/html/ul/bin/ && export
set GS=/godaddypath/html/ul/bin/gs && export set
LD_LIBRARY_PATH=/godaddypath/html/ul/lib && '.$convert.' -transparent white
-rotate 90 -density 300 '.$DATA_PATH.'mahina.ps '.$DATA_PATH.'mahina.png
2>&1', $png_cal_retvals);
if (file_exists($DATA_PATH.'/background.jpg')) {
//use the local copy of convert because mine is 7MB and is a memory hog.
Really only need it for gs magick interoperability
$return_cal_background = exec('/usr/bin/convert -sample 3300X5100^ -crop
3300x5100+0+0 -quality 85 '.$DATA_PATH.'/background.jpg
'.$DATA_PATH.'/resized-background.jpg 2>&1', $background_cal_retvals);

//compose the three together
$return_cal_compose1 = exec('composite -geometry -0+2550 -compose src-over
'.$DATA_PATH.'/mask.png  '.$DATA_PATH.'/resized-background.jpg
'.$DATA_PATH.'/masked-background.jpg 2>&1', $compose1_cal_retvals);
$return_cal_compose2 = exec('composite -geometry -0+2550 -compose src-over
'.$DATA_PATH.'/mahina.png '.$DATA_PATH.'/masked-background.jpg
'.$DATA_PATH.'/mahina.jpg  2>&1', $compose2_cal_retvals);

from www.havealoha.com/mahina/mahina.html


Aloha
Eric
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to