I have jpg files and I want to compress some of them if they are large enough and they haven’t already been compressed by tools like cjpeg or jpegmini. It makes no sense to compress a file that has rhe same quality or lower than what I specify when I run cjpeg. So i need some tool that gives me this value. Imagemagick does return a quality value which turns out to be something called ”compression quality” which i think is something different. When I run this on my original file, I got 93 and when I did the same on my compressed file, it returned 0 which isn’t very helpful. What I want is sometimes that returns the same value that i used in cjpeg.