In the following script what does:-do?
<?php
header('Content-Type:image/jpg');
system("convert images/pops/gdsample1.jpg -colors 13 jpg:-");
?>
In the following script what does:-do?
<?php
header('Content-Type:image/jpg');
system("convert images/pops/gdsample1.jpg -colors 13 jpg:-");
?>
Last edited by james438; 01-18-2012 at 10:06 PM.
To choose the lesser of two evils is still to choose evil. My personal site
I found the answer.jpg:says to output the image that is being processed in a jpg format. The-is the command that says do not write this to disk.
Ignore the explanation for the - above. Read the official definition of Standard Out at the bottom of the page here: http://www.imagemagick.org/script/co...processing.php
I'm not so sure that I understand it yet though.
Last edited by james438; 01-19-2012 at 02:38 AM.
To choose the lesser of two evils is still to choose evil. My personal site
Bookmarks