Greetings,
Is it possible to load multipage TIFF files in Aspose.Imaging.Image object? Is there any option of getting the total number of pages within a TIFF file using Aspose.Imaging namespace?
Regards,
Syed.
Hi Syed,
Sorry, this option is not available at the moment but a request in this regard has been logged into our issue tracking system as IMAGING-31979. We will keep you updated on this issue in this thread.
Please feel free to contact us in case you have further comments or questions.
Best Regards,
I also have a need to be able to iterate over a multi-page TIFF and save each page as a separate image in another format (i.e. JPG). Is there any projected date for resolving this thread?
Hi Richard,
Will this thread be updated when the new version is available for download?
Hi Richard,
babar.raza:Hi Richard,Our intention is to provide this feature with our upcoming release of Aspose.Imaging for .NET v1.5.0. This release is scheduled for the the first quarter of the following month (April).
Do you have an ETA for V1.5? The above indicated April, its almost the second week of May...
Will the publishing of V1.5 be posted to this thread so I will know when it is available without having to check the site on an ongoing basis?
Hi Richard,
The issues you have found earlier (filed as IMAGING-33193;IMAGING-31979) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by aspose.notifier.
Hi,
TiffImage image = (TiffImage)Image.Load(currentpath + “multipaged.tif”);
Console.WriteLine(image.Frames.Length);
//Create an instance of TiffImage and load an existing image using (TiffImage multiImage = (TiffImage)Aspose.Imaging.Image.Load(currentpath + "copy.tif")) { //Create an instance of int to keep track of frames in TiffImage int frameCounter = 0; //Iterate over the TiffFrames in TiffImage foreach (TiffFrame tiffFrame in multiImage.Frames) { multiImage.ActiveFrame = tiffFrame; //Load Pixels of TiffFrame into an array of Colors Color[] pixels = multiImage.LoadPixels(tiffFrame.Bounds); //Create an instance of JpegCreateOptions var JpgCreateOptions = new Aspose.Imaging.CreateOptions.JpegCreateOptions(); //Set Width and Height of JpegCreateOptions to Width and Height of TiffFrame JpgCreateOptions.Width = tiffFrame.Width; JpgCreateOptions.Height = tiffFrame.Height; //Set the Source of JpegCreateOptions as FileCreateSource by specifing the location where output will be saved JpgCreateOptions.Source = new FileCreateSource(string.Format("{0}\\Concat{1}.jpeg", currentpath, frameCounter), false); //Create a new JpegImage using (var JpgImage = (Aspose.Imaging.FileFormats.Jpeg.JpegImage)Image.Create(JpgCreateOptions)) { //Save the JpegImage with pixels from TiffFrame JpgImage.SavePixels(tiffFrame.Bounds, pixels); } frameCounter++; } }
The issues you have found earlier (filed as ) have been fixed in this Aspose.Words for JasperReports 18.3 update.