I'm running with PHP5 on WAMP & have come across a problem. I use the following php script to respond to an <image src="this.php?source=xxx">
Expand|Select|Wrap|Line Numbers
- // get $source & $res
- $command = "convert -geometry $res $source gim29.gif";
- exec($command);
- if (file_exists("gim29.gif")) {
- if($img = @file_get_contents("gim29.gif")) {
- header("Content-type: \"image/gif\"");
- print $img;
- }
- }