thumbnailImage($maxWidth, $maxHeight, true); $image->setImageFormat('png'); $content = $image->getImageBlob(); $image->destroy(); return $content; } catch (ImagickException $e) { throw LogoTraitementImpossibleException::pourErreur($e); } } }