Commit Graph

13 Commits

Author SHA1 Message Date
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
Jaisen Mathai 94af83029e gh-40 Enable debug for TravisCI 2016-09-13 20:47:35 -07:00
zserg af36de091e Python 3 compartibility added 2016-08-21 17:58:13 +03:00
Jaisen Mathai b89a0d2c2f Update Travis to install exiftool 10.20 2016-06-24 01:37:38 -04:00
Jaisen Mathai 6114328f32 gh-62 [WIP] Remove pyexiv2 and avmetareadwrite dependency 2016-06-22 15:45:30 -04:00
Jaisen Mathai 5c3c87e1da
gh-103 Add lines to .travis.yml to produce coveralls code coverage 2016-04-12 00:59:34 -07:00
Nathan Ostgard 718d8c1306 gh-76 Split up general requirements and test requirements 2016-01-17 23:58:27 -08:00
Nathan Ostgard c951dab095 gh-76 Updated .travis.yml 2016-01-13 11:07:19 -08:00
Nathan Ostgard 4867d4d311 gh-69 Allow import to trash files 2016-01-09 16:57:38 -08:00
Nathan Ostgard fa217e933b Added friendly errors when dependencies are not installed 2016-01-07 22:19:22 -08:00
Jaisen Mathai 3c4362e709 gh-22 Add __init__.py files so nosetests -w recursively runs tests 2015-12-01 01:03:00 -08:00
Jaisen Mathai 3a916aa589 Closes gh-21 Add all tests for FileSystem class and test photo files 2015-12-01 01:03:00 -08:00
Jaisen Mathai 56a085f75e gh-22 Add .travis.yml file 2015-12-01 01:03:00 -08:00