|
Posted by Udo Pecher on 12/02/07 20:20
In order to preview fotos I tried to read out the exif-pictures.
$exif_picture = exif_thumbnail($picture, $width, $height, $typ);
print("exif_width=" . $width);
print("exif_height=" . $height);
Here the width and height are printed correctly. But the following code
lines do not succeed:
header('Content-type: ' . image_type_to_mime_type($typ));
echo $exif_picture;
i.e. no picture is shown. Moreower the header-statement leads to the error
Cannot modify header information - headers already sent by (output started
at /home/www/webxyz/html/ausstellung_nav.php:6) in
/home/www/webxyz/html/ausstellung_nav.php on line 40
This error may be avoided when placing the header-statement just at the top
of the php-file. But even then thumbnails are not shown. Instead a lot of
letters are filling the screen.
Thanks for any help out
bahncompany.de
Udo Pecher
Navigation:
[Reply to this message]
|