Узнать степерь сжатия jpg из коммандной строки

identify -format '%Q' filename.jpg
или так
identify -verbose filename.jpg | grep Quality