Hacker News new | ask | show | jobs
by ZeroGravitas 3689 days ago
There's an existing tool that does this and uses mozjpeg.

It's called jpeg-recompress and is part of the jpeg-archive project on Github.

It currently can use mean-pixel-error, SSIM (the default), MS-SSIM and SmallFry (an implementation of the patented algorithm used by the JPEG mini app). So they may be open to adding this new comparison algorithm too.

edit: someone already filed an issue asking them to look at it:

https://github.com/danielgtaylor/jpeg-archive/issues/40