$im = imagecreatefromjpeg('image.php');
// get a color
$start_x = 20;
$start_y = 20;
$color_index = imagecolorat($im, $start_x, $start_y);
// make it human readable
$color_tran = imagecolorsforindex($im, $color_index);
when i try other normal jpeg file it return values but when i try image.php file it'll not to return the value. Can you help me here.
Now thats just an assumption. But as far as I know imagecreatefromjpeg can only retrieve files with an .jpg and .jpeg ending. Thats why theres also a imagecreatefromJPEG -> for .JPG and .JPEG files.
Now, I might lie - but I think thats where you error occurs. I guess you can't fetch "jpg's" where the image is actually created by PHP/ -> or has an .php ending. But as I said - not sure whether I talk some bullshit here, just an theory...