Page 1 of 1

Saving Images

Posted: Wed Jun 06, 2012 10:22 am
by ahmad1987
Hi,

How can i do the following with gdPicture API
1- Save from a certain page from a tiff file or saving from a page range (from - to)

Re: Saving Images

Posted: Wed Jun 06, 2012 11:02 am
by SamiKharma
Hi Ahmad,

For saving a single page you need to do the following:
1. Open the multipage tiff image from file using:
https://www.gdpicture.com/guides/gdpicture/v8/html/con ... tring.html
2. Select Page using:
https://www.gdpicture.com/guides/gdpicture/v8/html/con ... teger.html
3. Get the Page using:
https://www.gdpicture.com/guides/gdpicture/v8/html/con ... teger.html
4. Save it using:
https://www.gdpicture.com/guides/gdpicture/v8/html/con ... aging.html

As for saving a certain amount of pages from one multipage tiff to another, I highly suggest you check the Tiff_Splitter demo in the demos folder in your gdpicture directory, which basically does something very similar by splitting one tiff into two and then saving them.

Best Regards,
Sami