ImagickException¶
The ImagickException exception is thrown when an error happens while processing an Imagick operation.
<?php
try {
$imagick->gammaImage($correction, \Imagick::CHANNEL_ALL);
} catch (\ImagickException $e) {
throw new RuntimeException('Failed to apply gamma correction to the image');
}
?>
See also How to Fix ‘ImagickException: not authorized’
Related : Exception