NYCPHP Meetup

NYPHP.org

[nycphp-talk] exif_thumbnail

David Krings ramons at gmx.net
Tue Oct 31 20:41:11 EST 2006


Hi,

    thank you so so sooooo much!! I copied and pasted this and BAM! it 
just works! I love it. Thank you very much indeed!

          David K.

Ken Robinson wrote:
>
> What you want to do is use the "<img>'" tag in your script. The "src" 
> attribute should point to a script that will send the image back.
>
> Quick example (no error checking done...)
> Main script
> <?php
>   <img src="tn.php?f=image.jpg">
> ?>
>
> tn.php:
> <?php
>    $image = exif_thumbnail($_GET['f'], $width, $height, $type);
>    header('Content-type: ' .image_type_to_mime_type($type));
>    echo $image;
> ?>
>
> Ken
>




More information about the talk mailing list