convert_issues_attach_files.zip (153.4 KB)
Hi Aspose Support Team,
We use aspose-imaging to convert tiff, png, jpg to tiff, png, jpg format and got a lot of issues:
+ With aspose-imaging:20.4
Because of performance issue when convert to tiff format, we upgrade aspose lib from version 19.7 to 20.4. But we got an issue on UAT environment that still could not reproduce on local yet: Image export failed. —> class com.aspose.imaging.internal.Exceptions.ArgumentOutOfRangeException: The processing area width must be positive and more than 0.
Parameter name: areaToProcess
You can refer to error_log.txt file for details. The issue occur when convert 4 tiff files on 1 request, each file have file size < 1 MB for each. Do not happen when convert 2 tiff file on 1 request. Because of this issue, we must revert aspose-image to version 19.7 now.
And with version 20.4, we got these below issues:
When convert from jpg / png / tiff file with rotate option to jpg / png / tiff, the output result contain multiple stripes on the background. Please refer to Test_jpg.jpg for details.
Could not convert from tiff file - 1 bit-depth to png format with rotate option.
When convert image to PNG format, if we set pngOptions.setProgressive(true), we got Image export failed. —> java.lang.ArrayIndexOutOfBoundsException: 0 exception when convert without rotate/flip.
+ With aspose-imaging:19.7
When convert from jpg / png file with rotate option to jpg / png / tiff, the output result contain multiple stripes on the background. You could refer to Test_jpg.jpg for details. Do not happen with tiff source file.
It take a lots memory when convert large image size (~30MB). It need at least 4GB RAM to convert 1 image, and usually got full hard disk issue - need to restart PC to release hard disk space.
When convert image to PNG format, if we set pngOptions.setProgressive(true), we got Image export failed. —> java.lang.ArrayIndexOutOfBoundsException: 0 exception when convert without rotate/flip - the same as 20.4 version.
We are on UAT phase but got a lot of issues on image converter. Please help to investigate and trouble shoot these above issues.
And with aspose-image:19.7, do you have any work around to remove stripes on the image when convert from png to tiff file? This is the urgent task on our UAT phase.
P/S: I included full demo project for easy troubleshooting. You can switch aspose-image version on pom.xml & run AsposeImageConverterUtilsTest.java to verify result. Please add Aspose.Total.Java.lic to image-converter-demo\src\main\resources for license applying.
Hope to hear from you soon.