Ok, I'm trying to write a screenshot library function for a website.
Basically, what I wanted to accomplish was the ability to dynamicly take a user submitted jpeg screenshot that is uploaded and rather than make a second file for the smaller thumbnail, use the exif_thumbnail() function to do this for me.
Now, for some reason, the exif_thumbnail() function won't work for me.
A simple example of code is:
$exif = exif_thumbnail('test.jpg');
if(!$exif) {
echo "Not a correct image or image header";
}
else {
// show the thumbnail
}
Now, $exif keeps returning false, so it will always print the error message.
Does anyone have any experience using this function, because I've tried all the examples I've seen at php.net and zend, but have had no luck. I even tried some of the other exif functions, but none of them would read the jpg headers (I'm guessing thats the problem).
I do have exif and gd support compiled in to php, otherwise some of the portions of exif wouldn't work.
If anyone could help me out, or show me a solid working example of this function, I would seriously appreciate it,
Yours truly,
Cirrus