Removed masking of image extensions' exceptions

This commit is contained in:
rr- 2015-09-06 22:57:53 +02:00
parent 48bb4fc803
commit 180252cc64
2 changed files with 6 additions and 20 deletions

View file

@ -4,16 +4,9 @@ namespace Szurubooru\Services\ImageManipulation;
class GdImageManipulator implements IImageManipulator
{
public function loadFromBuffer($source)
{
try
{
return imagecreatefromstring($source);
}
catch (\Exception $e)
{
return null;
}
}
public function getImageWidth($imageResource)
{

View file

@ -4,8 +4,6 @@ namespace Szurubooru\Services\ImageManipulation;
class ImagickImageManipulator implements IImageManipulator
{
public function loadFromBuffer($source)
{
try
{
$image = new \Imagick();
$image->readImageBlob($source);
@ -13,11 +11,6 @@ class ImagickImageManipulator implements IImageManipulator
$image = $image->coalesceImages();
return $image;
}
catch (\Exception $e)
{
return null;
}
}
public function getImageWidth($imageResource)
{