Commit Graph

22 Commits

Author SHA1 Message Date
Jaisen Mathai ed4b58aa0d
Add support for PNG photos. #361 (#383) 2020-10-09 00:55:14 -07:00
Evan Thomas b07d26c389 Fix issue that breaks elodie if coordinate from exiftool is empty #354 (#355) 2020-01-18 09:03:40 -08:00
Jaisen Mathai 12c17c9cac Add a plugin to upload photos to Google Photos (#319)
Fixes #315.

This PR aims to address the [recent changes](https://www.blog.google/products/photos/simplifying-google-photos-and-google-drive/) in Google Photos + Google Drive where syncing between the two is no longer supported.

It works by uploading photos as part of the import process to add a copy of every photo in your library to Google Photos. Google Drive is not required for this plugin to work.

This plugin lets you have all your photos in Google Photos without relying on Google Drive. You can use another cloud storage service like iCloud or Dropbox or no cloud storage at all.

- [x] Add tests for `after()` plugin methods.
- [x] Add support for storage/async support.
- [x] Include plugins into code coverage.
- [x] Sweep code and clean up and add comments.
2019-07-12 01:44:57 -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 5b07386e2c
Add support for customizing file name via config file. #107 #110 #111 (#225) 2019-01-23 01:06:48 +05:30
Jaisen Mathai f7be8f323f Use original name from EXIF instead of parsing assumed file name format. #107 (#202) 2017-03-16 23:43:47 -07:00
Jaisen Mathai 0864f58a12 Add original file name methods to text and media class #186 (#187) 2017-01-22 00:19:44 -08:00
Jaisen Mathai a48a2edb62 Fix bug where zero value for latitude/longitude causes error gh-171 (#176) 2017-01-03 00:49:56 -08:00
Terence Eden cd5ba92b0b Support user defined folder structure (#5) (#160)
* Custom date directories
* Add config module to parse ini files
* Add method/tests to get a customizable folder path
* Cache path definition
* Initial working version of custom paths
* Add Directory values in sample config
* Refactoring location parsing logic and adding tests
* Remove unused functions
* Add documentation to parse_mask_for_location
* Remove commented out code
* Add tests for migrating old location db to new
2017-01-02 20:58:52 -08:00
Jaisen Mathai bf24f9689a gh-154 Add command to regenerate the hash database 2016-12-13 00:08:08 -08:00
Jaisen Mathai bd32c87b37
gh-113 Check for a file extension before doing a string in tuple conditional 2016-04-19 21:33:08 -07:00
Jaisen Mathai 479452b31c
gh-98 Check parsed metadata header in text file for type of dict 2016-04-19 21:09:27 -07:00
Jaisen Mathai 5a82de0da0
gh-100 Add support for text files and associated tests 2016-04-12 00:06:22 -07:00
Jaisen Mathai f234cb989d gh-93 Update media module to test for string before calling string functions 2016-03-23 00:25:27 -07:00
Jaisen Mathai e35e0ce471 gh-84 Added tests for invalid files with valid file extensions 2016-02-14 01:03:18 -08:00
Jaisen Mathai 58f0fadc07 gh-61 Add support for audio (m4a) files and accompanying tests 2016-01-03 22:10:56 -08:00
zserg d089b05cf0 tests added for inverted lattitude/logitude 2015-12-27 23:40:20 -08:00
Jaisen Mathai c14055698f gh-28 Add title back to test photos which were removed by Photoshop when modifying 2015-12-01 01:03:00 -08:00
Jaisen Mathai 232ebb10db Closes gh-30 Add unit tests for Video module 2015-12-01 01:03:00 -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 300c9c794d gh-29 Add unit tests for Media module 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