bigapple
bigapple

Reputation: 21

imagemagick no output

here is my code:

<?php
error_reporting(E_ALL) ;
$orig = "original.jpg";
$out = "output.jpg";
$cmd = "-sepia-tone 90%";
exec("/usr/bin/convert $orig $cmd $out ");
?>

After I run this, I expected a sepia toned version of original.jpg named output.jpg. when I check the directory, output.jpg doesnt exist.

What am I missing?

Upvotes: 1

Views: 362

Answers (1)

Jonathan Kuhn
Jonathan Kuhn

Reputation: 15301

<? php should be <?php

Upvotes: 1

Related Questions