ordigi/elodie
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
..
external gh-127 Fallback to latin if utf-8 decode fails in pyexiftool.py 2016-09-07 20:51:57 -07:00
media Use PIL(pillow) as a fallback mechanism image format identification and add HEIC support (#320) 2019-07-10 04:05:32 -07:00
plugins Create an extendable plugin framework #315 #316 (#318) 2019-07-04 02:57:10 -07:00
tests Use PIL(pillow) as a fallback mechanism image format identification and add HEIC support (#320) 2019-07-10 04:05:32 -07:00
tools Fix unicode decoding bug in compatability.py and add_original_name.py (#194) 2017-01-24 00:25:52 -08:00
__init__.py Initial Commit of working files 2015-10-02 00:23:13 -07:00
compatability.py Make reset_dbs() / restore_dbs() more robust #260 (#263) 2017-12-06 15:46:00 -08:00
config.py Create an extendable plugin framework #315 #316 (#318) 2019-07-04 02:57:10 -07:00
constants.py Make MapQuest parameters configurable #258 (#308) 2019-04-01 00:56:37 -07:00
dependencies.py Python 3 compartibility added 2016-08-21 17:58:13 +03:00
filesystem.py Create an extendable plugin framework #315 #316 (#318) 2019-07-04 02:57:10 -07:00
geolocation.py Make MapQuest parameters configurable #258 (#308) 2019-04-01 00:56:37 -07:00
localstorage.py gh-156 Add verify command to check all files for bit rot 2016-12-13 22:27:12 -08:00
log.py Create an extendable plugin framework #315 #316 (#318) 2019-07-04 02:57:10 -07:00
result.py gh-145 Add stats output block at the end of an update or import command. 2016-11-10 20:59:40 -08:00