google / guetzli

Perceptual JPEG encoder
Apache License 2.0
12.9k stars 977 forks source link

How do you prevent Guetzli from running twice on the same file #273

Open FredWahl opened 1 year ago

FredWahl commented 1 year ago

It seems loke a bad idea to run guetzli twice on the same picture. Is this something that Guetzli can detect by itself?

FredWahl commented 1 year ago

If you have lots of pictures and you decide to run guetzli on every jpg larger than, say, 8mb, youd append the string ”-guetzli” to the name which you then check for. What you get might still be larger than the threshold value. That solves the problem of course but I want to know if you can find out by examining the file. After all, you may have something for which guetzli has ben run like somethim from the james webb telescope.