summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/images.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/images.py b/src/images.py
index 06f3e22..707207b 100644
--- a/src/images.py
+++ b/src/images.py
@@ -75,3 +75,17 @@ class TiffParser(GdkPixbufAbstractParser):
75 'FileTypeExtension', 'ImageHeight', 'ImageSize', 'ImageWidth', 75 'FileTypeExtension', 'ImageHeight', 'ImageSize', 'ImageWidth',
76 'MIMEType', 'Megapixels', 'SourceFile'} 76 'MIMEType', 'Megapixels', 'SourceFile'}
77 77
78
79class BMPParser(GdkPixbufAbstractParser):
80 mimetypes = {'image/bmp', 'image/x-ms-bmp'}
81 meta_whitelist = {'SourceFile', 'ExifToolVersion', 'FileName', 'Directory',
82 'FileSize', 'FileModifyDate', 'FileAccessDate',
83 'FileInodeChangeDate', 'FilePermissions', 'FileType',
84 'FileTypeExtension', 'MIMEType', 'BMPVersion', 'ImageWidth',
85 'ImageHeight', 'Planes', 'BitDepth', 'Compression', 'ImageLength',
86 'PixelsPerMeterX', 'PixelsPerMeterY', 'NumColors',
87 'NumImportantColors', 'RedMask', 'GreenMask', 'BlueMask',
88 'AlphaMask', 'ColorSpace', 'RedEndpoint', 'GreenEndpoint',
89 'BlueEndpoint', 'GammaRed', 'GammaGreen', 'GammaBlue', 'ImageSize',
90 'Megapixels'}
91