Hi all,
This post is in addition to one I started about imagecreatefromjpeg() function. That has the details, but in a nutshell, I'm getting errors from this function.. sort of. Let me explain.
PHP Ver 4.2.2, gd ver 1.6.2
imagesx() and imagesy() complain that I'm not sending a valid Resource id to them.
$src_img = imagecreatefromjpeg() is the code I'm using to create the identifier. I am using a pjpeg image in the function. pjpeg support is listed in my phpinfo() output.
I tested $src_img with is_resource() and get_resource_type(), and they report back that the variable is a resource and its type is gd. However, imagesx($src_img), et al. generates the error message "Not a valid Resource identifier."
I'm really stumped on this one. I suspect the problem lies in my gd version, but I'm really ignorant about this whole subject.
Can anyone shed any light?