Reply to Re: Displaying EXIF-Thumbnails?

Your name:

Reply:


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
==================

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация