Hi,
Hi Aravind,
I have observed the requirement shared by you and request you to please share the source TIFF file for further investigation on our end. Please also share that which version of Aspose.Imaging you are using on your end to reproduce the issue.
Many Thanks,
Here i have attched the sample.
Hi Aravind,
I have worked with the TIFF file shared by you and have been able to observe the issue of low quality JPEG. An issue with ID IMAGINGNET-2299 has been created as enhancement request in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be automatically notified once the issue will be fixed
For the time being, I suggest you to use following alternative in your sample code as it generated slightly better result on my end.
multiImage.Resize(width, height, ResizeType.LanczosResample);
Many Thanks,
FYI
Hi Aravind,
Thank you for sharing the additional information. I have appended the shared information in associated issue and will share the feedback with you as soon as it will be shared by our product team.
Many Thanks,
@ARAVINDDSRC,
I suggest you to please try using following sample code on your end.
public static void TestTiff()
{
String path = "C:\\Aspose Data\\";
String fileName = "MultiTIF.tif";
String inputFilePath = path + fileName;
using (var multiImage = (TiffImage)Image.Load(inputFilePath))
{
int height = 70;
int width = 49;
multiImage.Resize(width, height,ResizeType.HighQualityResample)
var obj = new JpegOptions { ResolutionSettings = new ResolutionSetting() };
obj.ResolutionSettings.VerticalResolution = 300;
obj.ResolutionSettings.HorizontalResolution = 300;
if (obj.ExifData == null)
{
obj.ExifData = new global::Aspose.Imaging.Exif.JpegExifData();
}
var copiedFrame = TiffFrame.CopyFrame(multiImage.Frames[0]);
var toSaveTiff = new TiffImage(copiedFrame);
toSaveTiff.Save(path + fileName + "HQ.jpg", obj);
toSaveTiff.Dispose();
}
}
Many Thanks,
Mudassir Fayyaz
The issues you have found earlier (filed as IMAGINGNET-2299) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by mudassir.fayyaz
The issues you have found earlier (filed as ) have been fixed in this Aspose.Words for JasperReports 18.3 update.