Jump to content

php class / function fails :(


wmguk

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.