ordigi/elodie/tests/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 gh-22 Add __init__.py files so nosetests -w recursively runs tests 2015-12-01 01:03:00 -08:00
audio_test.py Add support for camera make and model in directory path #254 (#255) 2017-11-14 23:14:26 -08:00
base_test.py Add original file name methods to text and media class #186 (#187) 2017-01-22 00:19:44 -08:00
media_test.py Add tool to retroactively add OriginalFileName to all files in library #107 (#190) 2017-01-22 23:18:28 -08:00
photo_test.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_test.py Add tool to retroactively add OriginalFileName to all files in library #107 (#190) 2017-01-22 23:18:28 -08:00
video_test.py Add support for camera make and model in directory path #254 (#255) 2017-11-14 23:14:26 -08:00