Invalid jpeg mime-type
Status: Abandoned
Brought to you by:
gasper_k
WideImage_MapperFactory::mimeType() returns "image/jpg" instead of "image/jpeg" for a jpeg image. This happens due to the order in which array items are listed here:
static protected $mimeTable = array(
'image/jpeg' => 'JPEG',
'image/jpg' => 'JPEG',
'image/pjpeg' => 'JPEG',
'image/gif' => 'GIF',
'image/png' => 'PNG',
'image/bmp' => 'BMP'
);
It can be easily fixed by swapping the first two items in this array (see attached patch).
patch to fix this issue