changeset 586:588965ee2c63

arnica: ms image mimetypes added
author Dirk Alders <d.alders@arcor.de>
date Sun, 08 Apr 2012 15:15:31 +0200
parents 374033c4eb26
children 1b06afc3a430
files data/plugin/macro/Image.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/macro/Image.py	Sat Mar 10 17:51:26 2012 +0100
+++ b/data/plugin/macro/Image.py	Sun Apr 08 15:15:31 2012 +0200
@@ -170,9 +170,9 @@
         """
         if content_type is None:
             content_type = self.content_type
-        if content_type == 'image/jpeg':
+        if content_type in ('image/jpeg', 'image/pjpeg'):
             output_type = 'JPEG'
-        elif content_type == 'image/png':
+        elif content_type in ('image/png', 'image/x-png'):
             output_type = 'PNG'
         elif content_type == 'image/gif':
             output_type = 'GIF'