wmguk Posted March 19, 2008 Share Posted March 19, 2008 hey guys, im using this script to try and make images sepia <?php $file = $_GET['image']; require_once('class.image.php'); set_time_limit(720); $img = imagecreatefromjpeg('$file'); //Image::greyscale($img); Image::colourise($img, 'A09182'); header('Content-type: image/jpeg'); imagejpeg($img); ?> however when used, I just get a red cross for the image any thoughts? oh and the $file is correct, if i navigate directly to it, i see the image Link to comment https://forums.phpfreaks.com/topic/96858-php-class-function-fails/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.