[FX.php List] Creating thumbnail for TIFF uploads on the fly

Michael Ward headhoncho at customikesolutions.com
Sun Sep 30 18:19:38 MDT 2007


Hi Troy,

On 01/10/2007, at 7:51 AM, Troy Meyers wrote:

> I've set up a PHP page where customers can upload photos. On the  
> confirmation page following the upload I show a thumbnail-sized  
> version of the photo and some size and type statistics.
<snip>
> The thing I need is something to replace the line:
> $image = imagecreatefromjpeg($source_filename);
> ...that will read the TIFF file content into the $image variable.
>
> It'd be called "imagecreatefromtif" if it were built into PHP, I  
> expect, but I can't see one. Any suggestions?
>

I'd do this using ImageMagick <http://www.imagemagick.org> with  
MagickWand for PHP.

This gives possibility of manipulating many image types on the fly as  
they are uploaded.

Regards

Michael Ward
--
Head Honcho
CustoMike Solutions
Member, FileMaker Business Alliance
Member, FileMaker Technical Network
FileMaker 7 Certified Developer
FileMaker 8 Certified Developer
10 Wandoo Crt
Wheelers Hill, 3150
ph 0414 562 501
headhoncho at customikesolutions.com




More information about the FX.php_List mailing list