PNG compression level decreased with java 17

Hi,
We migrate our application from java 8 to java 17
Aspose libs are used to generate docx files with images converted to PNG from PDF files
The size of the resulting files have increased for more than 20% after migrating to java 17
The PNG Image compression level is lower than java 8
Even after compressing the PNG image data (with the default JVM PNG Image writer or external library) and the docx itself we can not obtain a similar size as before.

Is there a way to produce a better PNG compression level with java > than version 8 ?

You can find a scenario (java 8 and java 17) in the attached file png-compression-test.zip (3.1 MB)

Best regards
Lahcen

@lahcen As I can see Aspose.PDF is used for PDF to PNG conversion. So, i will move your request to Aspose.PDF forum. My colleagues will help you shortly.

Hi Alexey,

Thanks for you response
After compressing the image (using the default png ImageWiriter) produced by the Aspose.PDF PngDevice and inserting it in a docx (using DocumentBuilder.insertImage) the compression level is preserved in the saved document but is not as good as Java 8.

Lahcen

@lahcen

Do you mean that the image quality in final .docx file is not as good as it was used to be in Java 8?

Hi @asad.ali
We found that word documents are bigger when the application is executed in java 17 JVM
After analysis, the compression level of the images produced by the PngDevice is not as good as it used to be in Java 8

Lahcen

@lahcen

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFJAVA-45102

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.