Batch convert JPG to AVIF:

This is good for my Xperia 10 III images.
*Will NOT keep metadata!, fine for Xperia Images, not good for my a5100 camera.
This will transfer the timestamps on the file system.
Set at the 90% quality provided by KDE Gwenview default.
--------------------------------------------------------------------------------------------------------------------------

mogrify -define preserve-timestamp=true -format avif -quality 90% *.JPG

--------------------------------------------------------------------------------------------------------------------------
With pictures generated with some programs. Like with Sony Xperia Camera. If the above command is executed, the picture will be sideways.
To fix that run this version of the command to auto rotate with timestamp and conversion.

mogrify -define preserve-timestamp=true -format avif -quality 90% -rotate "90" *.JPG

--------------------------------------------------------------------------------------------------------------------------
Source A (Original Date)
Source B (Original Date)
Source C (Update 1 Date)

Original Date: August 17th 2024.
Update 1 Date: January 9th 2025.

Back