/trunk/jrest/bibliotheque/ImageRecreation.php |
---|
131,6 → 131,14 |
fclose($fp); |
$image = file_get_contents($chemin_image); |
} |
elseif ('O' === $format) { |
$image = new Imagick($chemin_image); |
$profiles = $image->getImageProfiles('icc', true); |
$image->stripImage(); |
if (!empty($profile)) { |
$image->profileImage('icc', $profiles['icc']); |
} |
$image = $image->getImageBlob(); |
} else { |
$image = file_get_contents($chemin_image); |
} |