NYCPHP Meetup

NYPHP.org

[nycphp-talk] exif_thumbnail

David Krings ramons at gmx.net
Tue Oct 31 20:25:32 EST 2006


Bill Kamm wrote:
> Does this help?
>
> http://www.php.net/ob_start
>
> "This function will turn output buffering on. While output buffering is 
> active no output is sent from the script (other than headers), instead 
> the output is stored in an internal buffer."
>
> Bill

It generally does, but not really. This is what I tried to do:
// Show thumbnail
      $exifthumbnail = exif_thumbnail($totalpath, $exifwidth, 
$exifheight, $exiftype);
      if ($exifthumbnail !== FALSE) {
            header('Content-type: ' .image_type_to_mime_type($exiftype));
            echo $exifthumbnail;
            header('Content-type: text/html; charset=utf-8');
            echo "<br />\n";
      } else {
            echo "No thumbnail available!<br />\n";
      }


And it still pipes out a whole bunch oh jibberish, that just seems to 
look different as when not sending any header info at all.

Thanks, but I'll try the other proposal. :/

       David K.



More information about the talk mailing list