How to convert images (GIF, JPG, JPEG, PNG) to TIFF in PHP?
How can I convert images to .tiff with php? (im testing on win xp)
I remember I used imagemagick to do this but I cant find the code now, and couldnt find a开发者_StackOverflow社区ny example on google.
A code sample will be appreciated.
Also, is there a way to do it without imagemagick?
Following is the code sample that might be helpful for you.
<?php
try
{
$image = new Imagick("testing.jpg");
$image->writeImage("page.tiff");
}
catch(Exception $e)
{
echo $e->getMessage();
}
?>
i think this links helps you, checkout this:
- http://pecl.php.net/package/imagick
- http://php.net/manual/en/book.imagick.php,
精彩评论