views:

40

answers:

2

Hi ! I need to convert tiff file to gif . can some one give me php or python script to do that ?

+1  A: 

Hi,

Try phpThumb in conjunction with the Imagick extension in PHP.

Alin Purcaru
Can you provide some more information... how to use this ImageMagick ?
Jagan
Just use phpThumb, but in order for it to work with TIFF's you need to have the Imagick extension in your PHP instalation. You can find all the info you need on the links I provided.
Alin Purcaru
+1  A: 

http://php.net/manual/en/book.imagick.php

try
{
        $image = '/tmp/image.tiff';    
        $im = new Imagick();    
        $im->pingImage( $image );    
        $im->readImage( $image );    
        $im->setImageFormat( 'gif' );    
        $im->writeImage( '/tmp/image.gif' );
}
catch(Exception $e)
{
        echo $e->getMessage();
}
Richard Knop