How to save Multipage TIFF - File with JPG-Compression

Example requests & Code samples for GdPicture Toolkits.
Post Reply
sunseeker
Posts: 40
Joined: Mon Sep 08, 2008 2:28 pm

How to save Multipage TIFF - File with JPG-Compression

Post by sunseeker » Wed Apr 01, 2009 11:17 am

Hi Loic,

how can i save a Multipage TIFF with JPG-Compression? At the moment, i use this code:

Code: Select all

for n = 0 to 10
   Imaging1.setnativeimage viewer(n).getnativeimage
   Imaging1.ConvertTo24BppRGB
   Imaging1.SaveAsTIFFjpgEx Filename & "." & n, 80
   Imaging1.CloseNativeImage
next n

nImageID = MyImaging.TiffCreateMultiPageFromFile(Filename.0)
for n = 1 to 10
   MyImaging.TiffAppendPageFromFile(nImageID, Filename & "." & n)
next n

MyImaging.TiffSaveMultiPageToFile nImageID, "c:\output.tif", CompressionLZW
But....the Multipage isn´t stored with JPG-Compression. At the moment i need for 3 pages in a Multipage TIFF 2,5MB! LeadTools saves a Multipage-TIFF with CMP-Compression (quality=70) on 285KB

Any solution? If you need, i can give you a sample Multipage-File from GDViewer and a sample Multipage-File from Lead

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: How to save Multipage TIFF - File with JPG-Compression

Post by Loïc » Wed Apr 01, 2009 5:27 pm

Hi,

We are already working on this feature. I think it should be available soon...

Best regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest