ordigi/elodie/media
Jaisen Mathai 032e24b204 Use PIL(pillow) as a fallback mechanism image format identification and add HEIC support (#320)
Fixes #281 and #269

When elodie imports images, imghdr.what is used to determine the image
type. imghdr implementation won't support all JPEG variants. Because
of this, even for a valid JPEG file, imghdr.what returns None causing
elodie to skip the image during import.

This commit adds a fallback mechanism which uses PIL(pillow) library to
identify image formats. When imghdr fails, elodie uses pillow to
identify image format. When pillow is unavailable, it will be treated as
an invalid media file. Pillow is imported only when imghdr fails.
2019-07-10 04:05:32 -07:00
..
__init__.py empty media/__init__.py 2016-01-04 23:50:44 +01:00
audio.py Python 3 compartibility added 2016-08-21 17:58:13 +03:00
base.py Add support for camera make and model in directory path #254 (#255) 2017-11-14 23:14:26 -08:00
media.py Specify fully qualified path for exiftool program (#304) 2019-03-09 23:01:28 -08:00
photo.py Use PIL(pillow) as a fallback mechanism image format identification and add HEIC support (#320) 2019-07-10 04:05:32 -07:00
text.py Fix issue #252 to not modify original source files on import (#272) 2019-02-04 14:20:39 -08:00
video.py Add support for mts video files with H264:DateTimeOriginal create date field support (#295) 2019-01-24 07:34:02 +05:30