1
0
mirror of https://github.com/Intervention/image.git synced 2025-02-06 22:00:38 +01:00

added mime-type aliases to AbstractEncoder

This commit is contained in:
Oliver Vogel 2014-08-21 20:18:28 +02:00
parent 59a76640e2
commit 0d6d0ab312

View File

@ -94,6 +94,7 @@ abstract class AbstractEncoder
case 'png':
case 'image/png':
case 'image/x-png':
$this->result = $this->processPng();
break;
@ -101,19 +102,28 @@ abstract class AbstractEncoder
case 'jpeg':
case 'image/jpg':
case 'image/jpeg':
case 'image/pjpeg':
$this->result = $this->processJpeg();
break;
case 'tif':
case 'tiff':
case 'image/tiff':
case 'image/tif':
case 'image/x-tif':
case 'image/x-tiff':
$this->result = $this->processTiff();
break;
case 'bmp':
case 'image/bmp':
case 'image/x-windows-bmp':
case 'image/ms-bmp':
case 'image/x-bitmap':
case 'image/x-bmp':
case 'image/x-ms-bmp':
case 'image/x-win-bitmap':
case 'image/x-windows-bmp':
case 'image/x-xbitmap':
$this->result = $this->processBmp();
break;