This is the normal way:
$img = new Imagick('ttt.jpg');
$quality = $img->getImageCompressionQuality();
but what I want is:
$image = imagecreatefromjpeg('ttt.jpg');
$img = new Imagick($image);
$quality = $img->getImageCompressionQuality();
so I can make sure there will be no openbase issues when I copy the script to another server and forget to configure permissions for instance.
Is this possible somehow?