I am trying to write a script that will resize an image but am not having much luck...
I have broken my code right down to basics and it still won't work. This is what I have:
a php file called djpeg.php, and a smal jpeg image in the same directory.
the php script looks like this:
<?
system("djpeg artwork.jpg > done");
system("pnmscale -xy 250 200 done | cjpeg -smoo 10 -qual 50 >scaled.jpg");
echo "done";
?>
When the script runs it produces two files in the directory but both of them are 0k in sze.
(I am working in mac os 10.1 with php 4.1.1 installed with gd support (the php install came from a pre compiled binary and i'm pretty sure all the gd stuff works as I can create images on the fly. I'm only having problems with the djpeg and cjpeg bits.)
Many thanks...
Tom