|
@ -32,7 +32,9 @@ var ImageHandler = PreviewHandler.extend({ |
|
|
checkExtension: function(extension) { |
|
|
checkExtension: function(extension) { |
|
|
return ['.cod', '.ras', '.fif', '.gif', '.ief', '.jpeg', '.jpg', '.jpe', '.png', '.tiff', |
|
|
return ['.cod', '.ras', '.fif', '.gif', '.ief', '.jpeg', '.jpg', '.jpe', '.png', '.tiff', |
|
|
'.tif', '.mcf', '.wbmp', '.fh4', '.fh5', '.fhc', '.ico', '.pnm', '.pbm', '.pgm', |
|
|
'.tif', '.mcf', '.wbmp', '.fh4', '.fh5', '.fhc', '.ico', '.pnm', '.pbm', '.pgm', |
|
|
'.ppm', '.rgb', '.xwd', '.xbm', '.xpm'].includes(extension); |
|
|
|
|
|
|
|
|
'.ppm', '.rgb', '.xwd', '.xbm', '.xpm', 'cod', 'ras', 'fif', 'gif', 'ief', 'jpeg', |
|
|
|
|
|
'jpg', 'jpe', 'png', 'tiff', '.tif', 'mcf', 'wbmp', 'fh4', 'fh5', 'fhc', 'ico', |
|
|
|
|
|
'pnm', 'pbm', 'pgm', '.ppm', 'rgb', 'xwd', 'xbm', 'xpm'].includes(extension); |
|
|
}, |
|
|
}, |
|
|
checkType: function(mimetype) { |
|
|
checkType: function(mimetype) { |
|
|
return ['image/cis-cod', 'image/cmu-raster', 'image/fif', 'image/gif', 'image/ief', 'image/jpeg', |
|
|
return ['image/cis-cod', 'image/cmu-raster', 'image/fif', 'image/gif', 'image/ief', 'image/jpeg', |
|
|