display exif thumbnail and comment on one webpage
Posted: Fri Dec 31, 2004 6:46 am
hi,
i want to read the exif comment and thumbnail fields of an image and display them on a single website. however i don't have a clue how to do that. resetting the header probably wasn't more than a last desperate try..
with the code below the thumbnail gets displayed fine while the following text is not visible.
is there a way to display contents with different mime types?? could anyone give me a hint how to solve that problem?
thank you
baf
ps: and a happy new year 2005
feyd | Help us, help you. Please use
i want to read the exif comment and thumbnail fields of an image and display them on a single website. however i don't have a clue how to do that. resetting the header probably wasn't more than a last desperate try..
with the code below the thumbnail gets displayed fine while the following text is not visible.
Code: Select all
<?php
$thumb = exif_thumbnail ("testpic.jpg"); //thumb is a string
header('Content-type: image/jpg');
$thumb = imageCreateFromString($thumb);
imagejpeg($thumb);
imagedestroy($thumb);
header('Content-type: text/html');
echo "hallo";
?>thank you
baf
ps: and a happy new year 2005
feyd | Help us, help you. Please use
Code: Select all
andCode: Select all
tags where approriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]