Hi, I’m using version 22.12.1 for java on OpenJDK 11, Windows 10.
I’m trying to convert this JPGs to PNGs, but your library throws the following exception once I call converter.convert
:
`com.groupdocs.conversion.exceptions.CorruptOrDamagedFileException: Cannot convert. The file is corrupt or damaged.
at com.groupdocs.conversion.documents.p.vm(Unknown Source) ~[groupdocs-conversion-22.12.1.jar:22.12.1]
at com.groupdocs.conversion.converting.operations.ImagePreprocessConvertOptionsOperation.execute(Unknown Source) ~[groupdocs-conversion-22.12.1.jar:22.12.1]
at com.groupdocs.conversion.pipeline.e$1$1.a(Unknown Source) ~[groupdocs-conversion-22.12.1.jar:22.12.1]
at com.groupdocs.conversion.pipeline.d.execute(Unknown Source) ~[groupdocs-conversion-22.12.1.jar:22.12.1]
at com.groupdocs.conversion.pipeline.g.a(Unknown Source) ~[groupdocs-conversion-22.12.1.jar:22.12.1]
at com.groupdocs.conversion.pipeline.g.a(Unknown Source) ~[groupdocs-conversion-22.12.1.jar:22.12.1]
at com.groupdocs.conversion.b.convert(Unknown Source) ~[groupdocs-conversion-22.12.1.jar:22.12.1]
at com.groupdocs.conversion.Converter.convert(Unknown Source) ~[groupdocs-conversion-22.12.1.jar:22.12.1]
at com.groupdocs.conversion.Converter.convert(Unknown Source) ~[groupdocs-conversion-22.12.1.jar:22.12.1]``
Input files:
20220226_153302.jpg (2.2 MB)
20220223_143713.jpg (965.6 KB)
Not sure, why the lib says it’s bad or corrupted. Both files are completely ok and valid.
Can you please help?
Thank you,
Nir