How to limit the weight of an image to a specified amount of MB
Remco Viƫtor
remco.vietor at wanadoo.fr
Tue Sep 24 15:30:45 BST 2024
On mardi 24 septembre 2024 20:08:54 CEST Michel Cambron wrote:
> Bonjour DigiKam Team,
>
> Digikam has a feature to resize the image by modifying the number of
> pixels but is there a way to limit the final size of a jpeg ( export or
> transform) to a specified limit, example limit the size at 2.0 MB ?
>
> I am using version 8.4 on Window 11.
>
> Best regards,
>
> Michel
As the amount of compression that can be obtained for a given quality level
also depends on the image *content*, you cannot predict the final size of the
resulting file. This is independant of the digikam version, or operating
system, btw.
That said, some testing with a file with a large amount of details should give
you a ball park figure. Keep in mind that the pixel size also has a large
influence on the final file size: making the image twice as large requires 4x
as many pixels (but that's before compression...)
More information about the Digikam-users
mailing list