Excessive file size after conversion

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:

  1. INPUT input1.jpg (908.1 KB) FileSize = 1,227KB.
    OUTPUT output1.jpg (1.3 MB) FileSize = 8,651KB.
  2. INPUT input2.jpg (1.8 MB) FileSize = 1,800KB.
    OUTPUT output2.jpg (1.6 MB) FileSize = 9,406KB.
  3. 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 :slight_smile:

@nirm

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?

1 Like

@nirm

You can see the issue status in the same thread. Please have a look at this screenshot.png.

Got it thanks :slight_smile:
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.

1 Like

@nirm

We’ll let you know if any further details are required.

Hi, any updates?

@nirm

This issue is still under investigation. We’ll notify you in case of any update.

@nirm

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.