I allow users to upload images. However, I want to keep JPEG quality not more than 90%. What I plan to do is to detect the current quality: - If less than 90% do nothing - If mo
Since the OP stated he prefers php, I offer the following:
$img = new Imagick($filename); $quality = $img->getImageCompressionQuality();