I am getting the following exception when trying to resize an image using Aspose.Imaging for .NET.
Hi Jorge,
Sorry for the inconvenience faced. While using the latest version of Aspose.Imaging i.e. v1.7.0, I have managed to reproduce this issue on my side. I have logged the issue in our bug tracking system, the issue ID is IMAGING-33307. I have also linked your request to this issue and you will be notified as soon as it is resolved via this thread.
Meanwhile, you can use another Resize overload method with an additional parameter of Resizetype. Please try it as following; hopefully it will serve the purpose.
using (Aspose.Imaging.Image Image = spose.Imaging.Image.Load("C:\\temp\\rpt_blank.png"))
{
Image.Resize(690, 100, Aspose.Imaging.ResizeType.NearestNeighbourResample);
Image.Save("C:\\temp\\690output.png", new Aspose.Imaging.ImageOptions.PngOptions());
}
Please feel free to contact us for any further assistance.
Best Regards,
Thank you! This seemed to workaround the issue. The output image still looks fine.
Jorge
Hi Jorge,
Thanks for your feedback. It is perfect that you managed to achieve your desired results. However, we will keep you updated about logged issue status, IMAGING-33307.
Please feel free to contact us for any further assistance.
Best Regards,
The issues you have found earlier (filed as ) have been fixed in this Aspose.Words for JasperReports 18.3 update.