Commit Graph

40 Commits

Author SHA1 Message Date
Jaisen Mathai 87e0420fba
Make Pillow optional due to external dependencies (#326)
Fixes #325.

`Pillow` has a number of external dependencies needed for installation. Since most media files are detected correctly with `imghdr` and `Pillow` is used as a fallback we can make it optional.

`Pillow` support was added in #320 to fix #281.
2019-07-14 17:36:09 -07:00
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 a1d3cb35fc Add log module and tests 2016-11-09 20:07:44 -08:00
Jaisen Mathai 71b1e9f0ed gh-40 Add tests to increase coverage in geolocation and photo module 2016-09-12 22:28:17 -07:00
Jaisen Mathai fe6121e43b Merge pull request #125 from jmathai/cr2-support-gh-124
gh-124 Add support for cr2 files
2016-09-04 16:20:39 -07:00
Jaisen Mathai 10e078baa5 gh-124 Add support for cr2 files 2016-09-04 16:15:11 -07:00
ZSerg ad1cbefb15 PEP8 fix 2016-08-22 09:10:45 +03:00
zserg af36de091e Python 3 compartibility added 2016-08-21 17:58:13 +03:00
Jaisen Mathai cb38bf5176 Fix numerous flake8 warnings 2016-06-24 00:31:58 -04:00
Jaisen Mathai 6114328f32 gh-62 [WIP] Remove pyexiv2 and avmetareadwrite dependency 2016-06-22 15:45:30 -04:00
Jaisen Mathai a0f744c082
gh-99 Add support for Sony ARW format 2016-04-12 23:47:41 -07:00
Jaisen Mathai 4c269b538a gh-92 Add support for RW2 (RAW) files 2016-03-23 09:41:22 -07:00
Jaisen Mathai a66fc7ca41 gh-31 Remove raise SkipTest for geolocation tests due to precision loss 2016-03-23 09:35:32 -07:00
Jaisen Mathai ed127aa402 gh-93 Add tests for dng and nef files 2016-03-23 00:09:25 -07:00
Jaisen Mathai bd5a49d66c gh-89 Reapply album to video when updating EXIF via avmetareadwrite
Add failing test for when setting album then title reverts album
2016-03-14 21:39:40 -07:00
Jaisen Mathai e35e0ce471 gh-84 Added tests for invalid files with valid file extensions 2016-02-14 01:03:18 -08:00
zserg b686e7c228 LatLon removed 2016-02-12 22:22:26 +03:00
Jaisen Mathai c55b14e6c4 gh-74 Check for existing EXIF field before writing and create if needed. Add test case. 2016-01-12 20:48:58 -08:00
Nathan Ostgard cfe82012b0 gh-70 Adding Sphinx docs 2016-01-09 09:44:39 -08:00
Fabrice Laporte b01b611d26 fix pyflakes warnings reported in non-test files 2016-01-02 18:34:43 +01:00
Jaisen Mathai 60c4acc1b3 gh-58 Fix all pep8 issues reported in non-test files 2016-01-01 23:25:59 -08:00
zserg 0c3cfa8e47 @jmathai suggestion to improve the code readability 2015-12-27 23:40:20 -08:00
zserg 75e1f6180c fix problem with negative (South) Latitude 2015-12-27 23:40:20 -08:00
Jaisen Mathai c9d7bc7102 Closes gh-50 Add unsigned option to `geolocation.decimal_to_dms` function and call with `False` from photo.py 2015-12-27 00:10:19 -08:00
Jaisen Mathai 7a6931d34c Closes gh-38 Add import for constants module in photo.py 2015-12-20 00:31:03 -08:00
Jaisen Mathai fe160bb175 gh-28 Add no-exif file for tests and add test cases 2015-12-01 01:03:00 -08:00
Jaisen Mathai 56b9e7484d gh-28 Refactor Photo module to support unit tests 2015-12-01 01:03:00 -08:00
Jaisen Mathai f67314f6bc gh-2 Write to EXIF from earlier of modified or access time if no date is found in EXIF 2015-11-29 22:01:27 -08:00
Jaisen Mathai a7aee65ca0 Add initial screen to add config information 2015-11-19 02:31:32 -08:00
Jaisen Mathai 4b5a736e6f Working electron app bundle 2015-11-02 02:11:53 -08:00
Jaisen Mathai 62f6e56bdb Add support for reading/writing titles for photos and videos 2015-10-28 00:19:21 -07:00
Jaisen Mathai b372cde326 Get album updates working for all file types 2015-10-20 23:51:14 -07:00
Jaisen Mathai 8221e3c020 Add video geotagging support using avmetareadwrite on OS X 2015-10-20 01:17:09 -07:00
Jaisen Mathai 82ff1da944 Updated time parsing to work with different formats 2015-10-14 21:27:42 -07:00
Jaisen Mathai 5316261b7d Refactor code to use pyexiv2 for photos and videos and move methods out to Media class 2015-10-14 00:39:30 -07:00
Jaisen Mathai ad62b0d61d Added FileSystem.process_file and adjust.py 2015-10-13 20:30:30 -07:00
Jaisen Mathai 7408a860d9 Add EXIF support for video files 2015-10-12 00:37:57 -07:00
Jaisen Mathai 866e4dd6d3 Update import.py to handle videos and photos. Add geolocation and constants. And more 2015-10-10 00:02:53 -07:00
Jaisen Mathai c9d52aaa59 Initial version of photo importer 2015-10-08 02:22:30 -07:00
Jaisen Mathai b7984dff0f Add initial Photo class 2015-10-07 01:48:01 -07:00