Skip to main content

Create multi-page TIFF image

1 reply [Last post]
ogradyjd
Offline
Joined: 2010-01-04

I've spend hours looking all over the 'net for this and I'm finally resorting to posting the question, and the question is this: How do I use imageio to create a multipage tiff from two tiff files?

I've seen a lot of post answers for merging two images together, but I'm not looking to combining two tiff images into one image, but into a paged tiff image as per the spec allows. Bonus points for a solution that includes combining two multipage images into one uber-multipage image!

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
marcojacob
Offline
Joined: 2006-07-10

You have to create a writer that returns canWriteSequence()==true:

prepareSequence(null)
n times writeToSequence(...)
endWriteSequence()

That's it.

I found this searching Google: imageio create multipage tiff

Found:
http://forums.sun.com/thread.jspa?threadID=5304751
http://www.mms-computing.co.uk/phpBB2/viewtopic.php?t=30