DotImage Knowledgebase

Home : Save a multipage TIFF as individual pages using ImgX
Q10015 - HOWTO: Save a multipage TIFF as individual pages using ImgX
You can save a multipage TIFF to a number of single page TIFF's with the following code. There are two different approaches you can take.

1) Load all images of the tiff into ImgX then set the current image and save it to a file:

ImgX.Import.FromFile "multiimage.tif"
For i = 0 To ImgX.Images.Count - 1
    ImgX.Image = ImgX.Images(i)
    ImgX.Export.ToFile "singleimage" & i + 1 & ".tif", ixfsTIF, , false
Next

2) Load each image individually and save it to a file:

Dim pages As Long
ImgX.Support.GetImageInfo "multiimage.tif", , , pages
For i = 1 To pages
    ImgX.Import.FromFile "multiimage.tif", i
    ImgX.Export.ToFile "singleimage" & i & ".tif", ixfsTIF, , false
Next
Related Articles
No Related Articles Available.

Article Attachments
No Attachments Available.

Related External Links
No Related Links Available.
Help us improve this article...
What did you think of this article?

poor 
1
2
3
4
5
6
7
8
9
10

 excellent
Tell us why you rated the content this way. (optional)
 
Approved Comments...
No user comments available for this article.

Powered By InstantKB.NET v1.3
Copyright © 2002, 2013. InstantASP Ltd. All Rights Reserved

preload preload preload