JPEG 2K max_filesize
Posted: Wed Apr 22, 2020 7:50 am
I want to compress several images in a loop to J2K with desired output filesize. This filesize is calculated based on input image and changes each loop.
I've noticed that XnView MP allows me to compress several images into 1 specific filesize, however I have to manualy write this filesize, which is fine for images that have the same resolusion and for a small number of filesizes I want to achieve.
In Nconvert there is an option called -max_filesize value: Maximum filesize (JPEG2K).
But when I use a testing code in PowerShell for 1 image, no matter what the value is, the output has always the same size.
I am using 64bits version of NConvert.
I've noticed that XnView MP allows me to compress several images into 1 specific filesize, however I have to manualy write this filesize, which is fine for images that have the same resolusion and for a small number of filesizes I want to achieve.
In Nconvert there is an option called -max_filesize value: Maximum filesize (JPEG2K).
But when I use a testing code in PowerShell for 1 image, no matter what the value is, the output has always the same size.
Code: Select all
.\nconvert.exe -out jp2 -o test.j2k -max_filesize 1000 test.jpg
I am using 64bits version of NConvert.