|
Posted by Jerry Stuckle on 12/02/07 20:25
Udo Pecher wrote:
> 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
>
>
You can send html or one image from a file - nothing more. HTTP
protocol doesn't allow it.
You need to call the image generator page with an img statement, i.e.
<img src="www.example.com\mythumbnail.php?photoid=15">
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|