You can’t do much better for still image compression than JPEG. Video codecs use the high redundancy of images inĀ time to get better compression when compressing a series of images.
I wanted to archive images from my home security cameras (which save still JPEGs over FTP to a Raspberry Pi) and save some disk space so I whipped up a script to pull them down and transcode them to video.