views:

213

answers:

1

I've got a client who needs me to use PHP to split a TIFF image (which contains 2 or 3 images, sort of like an animated GIF) into its component images.

Can ImageMagick or one of the other graphic libraries do this?

+1  A: 

From a quick search, ImageMagick claims to be able to resize/crop images, as well as read TIFF. So I would say that it is able to do the job. I know from previous questions that ImageMagick does work with PHP.

monksy
We did end up using ImageMagick, what we discovered was we could convert the Tif to a gif, and it made the gif an animation (basically) so we were able to split that apart.
Trick Jarrett
That will lose you colour information, though, as GIF has a limited colour range. Pulling single pages out of the TIFF and storing them as single TIFFs or JPGs might work better.
Pekka