I have installed imagick library and checked using this command:
php -m | grep imagick
. It is working.
but when I referred to the same reference,it is giving me blank array.
Here is my code:
error_reporting(E_ALL);
$incoming_file = '/var/www/html/demos/exif/tim.jpg';
$img = new Imagick(realpath($incoming_file));
$profiles = $img->getImageProfiles("icc", true);
echo '<pre>';
print_r($profiles);
When I try to print $profiles
nothing is returned. It gives me an empty array.