Hi guys,
I’m converting JPGs into PNGs.
I’m using your basic code for conversion and I’m not applying any optimizations or setting any resolution properties and all the outputs have a very high file size.
Why does it happen? I tested different inputs from different devices and sources and every time the conversion lib is generating a very big output. I know that the default DPI is 96 and some of the photos have a much higher DPI, but still they are converted to a heavy weight file. This is very weird.
I’m running latest version 21.10.1 on Windows 10 Pro. Java 11 OpenJDK.
Here are some examples (I added the actual file size as it appears by Windows’s file system:
INPUT input3.JPG (928.6 KB) FileSize = 2,945KB.
OUTPUT output3.jpg (1.0 MB) FileSize = 7,696KB.
You can see for yourself that the output file has a much larger file size.
One of AWS’s services that I’m using to processes the outputs (PNGs) is limited to image files of 10MB but almost all outputs are much bigger.
Can you please help me? What is the reason for this?
Thank you very much
We successfully reproduced this issue by converting the provided JPG to PNG using Java. Output images are excessive in size. Therefore, we’ve logged it in our internal issue tracking system with ID CONVERSIONJAVA-1600. You’ll be notified in case of any update.
Hi @Atir_Tahir,
thanks for the response.
Is there any way I can track such a case?
Do I have here a system that I enter a tracking ID (e.g CONVERSIONJAVA-1600) and get its status or updates?
Got it thanks
I just wanted to say that I work at a company that has a large scale of input files, images, PDFs, Word docs and more and we can (potentially) provide you with a lot of input/test data for your testing. If you’re interesting, please let me know.
We tested the source files you shared and the output you are getting (file size) is expected. For example, try to save input1.jpg (908kb) to PNG using MS Paint. You’ll see that the resultant file size is 10MB.