How to convert an image of one size to an image of
another: if (its_a_JPG_file) { $command = "djpeg < $file | pnmscale -ysize $HEIGHT | cjpeg > $thumbfile"; } else { $command = "giftopnm < $file | pnmscale -ysize $HEIGHT | cjpeg > $thumbfile"; } #print "$command\n"; system($command); |