ImageBundle icon indicating copy to clipboard operation
ImageBundle copied to clipboard

OutOfMemoryException

Open CharlyPoppins opened this issue 9 years ago • 0 comments

Hi, I have a OutOfMemoryException that I can't catch. Do you why ?

try {
    $img = $this->get('image.handling')->open('/path/to/my/image.png');
    $chemin = $img->jpeg(80); 
} catch(\Exception $e) {
//} catch(\OutOfMemoryException $e) {           
}

The catch bloc is never triggered, maybe a throw is missing in ImageBundle ?

CharlyPoppins avatar Apr 10 '15 18:04 CharlyPoppins