Commit Graph

60 Commits

Author SHA1 Message Date
Simon Conseil
3fef17e3fc Format 2022-04-08 20:05:51 +02:00
David Schultz
78ecbfe668 more coverage improvements 2022-01-28 16:51:03 -06:00
David Schultz
47c8cf786a add a test to increase code coverage 2022-01-28 15:49:25 -06:00
Simon Conseil
67689730a6 Use black 2021-07-07 00:15:20 +02:00
Simon Conseil
bab54d1286 Add pre-commit config 2021-07-07 00:03:02 +02:00
Simon Conseil
04b37a21a0 Add test 2021-02-07 18:47:52 -03:00
Simon Conseil
d09a620341 More fixes 2021-02-07 18:40:29 -03:00
Simon Conseil
e84364aaeb Fix outformat - the output extension should match the required format 2021-02-06 17:16:30 -03:00
Simon Conseil
62fd35a665 Compatibility with Pillow 7.2 2020-07-13 22:35:35 -04:00
Simon Conseil
e533b32dfc Run isort 2020-03-15 22:58:03 -03:00
Kevin Murray
fcbb197cc5 Add a setting to force image output format 2020-03-15 22:43:35 -03:00
Simon Conseil
42b362ace0 Remove test code for old Pillow version 2020-01-04 00:54:12 -03:00
Simon Conseil
538f535b5e Fix tests with Pillow 7.0 2020-01-04 00:51:44 -03:00
tudacs
b7a2a5a060 Remove unnecessary code from tests 2018-12-19 19:19:05 +01:00
tudacs
d833573f25 Add headline test 2018-12-19 18:59:32 +01:00
tudacs
0adffcbcb5 Add test for SyntaxError thrown by IptcImagePlugin, assert log 2018-12-19 18:35:24 +01:00
Simon Conseil
fbb056e3b9 Add doc page with licenses and replace a few images
whose license/origin is unclear
2018-09-05 09:00:55 +02:00
Simon Conseil
23cc8a994b Remove encoding specification 2018-08-27 00:15:17 +02:00
Edwin Steele
45cf226f17 Move iptc field extraction to image.py 2018-02-15 17:14:37 +11:00
Edwin Steele
ef07f1e7a7 Populate title & description from IPTC image data
The IPTC spec defines title and description fields so use those
to populate these fields on the Image unless they've been set by
some other means.
2018-02-13 17:07:54 +11:00
Simon Conseil
498d94c2b3 Add video_converter to the settings dict
Also split arguments for image and video's generate_thumbnail functions.
2018-01-03 18:52:15 +01:00
Simon Conseil
1e96a7c939 Add setting to customize the EXIF datetime format (fix #271)
- The default format is now `%c`
- Fix documentation confusion between ``datetime`` and ``dateobj``
2018-01-03 17:11:58 +01:00
Edward Betts
311d203e3a correct spelling mistakes 2017-10-23 08:18:08 +01:00
Matthias Vogelgesang
0a62cb38fd Test portrait/landscape resize correctness 2017-10-09 14:09:49 +02:00
Jorge Gallegos
6eb570ceb7 Adding a test that showcases the bug
I found a couple of images where the ISOSpeedRatings value is an empty
tuple. This makes sigal sad.
2016-04-07 10:36:42 -07:00
Simon Conseil
b4d1057a58 Fix ZeroDivisionError when ExposureTime contains null values (fix #193) 2016-02-16 00:16:14 +01:00
Rémy HUBSCHER
dba2aec8ec Use pytest.mark.parametrize r=@saimn 2016-01-08 12:23:23 +01:00
Rémy HUBSCHER
c196fc64a5 Validate GIF always use_orig and generate thumbnail. 2016-01-08 11:46:51 +01:00
Simon Conseil
f819f883d4 Fix test with fraction exposure 2016-01-08 00:13:07 +01:00
Simon Conseil
0622f2666c xfail GPS test only for Pillow 3.0.0 2016-01-08 00:12:33 +01:00
Simon Conseil
a9ca86fe6f More fixes. 2015-10-14 23:16:09 +02:00
Simon Conseil
e8e6598b6d Strip spaces for some exif tags (fix #154). 2015-07-18 00:43:25 +02:00
Simon Conseil
b4ad227eb7 Make sure that bad exif data does not crash sigal. 2015-07-17 00:48:51 +02:00
franek
78b23090fe add test on get_size method when missing image 2015-06-15 11:10:50 +02:00
franek
a7e9c17489 Refactor get_size method and add 2 properties to Image (size and thumb_size).
Add tests for get_size method
2015-06-14 12:54:19 +02:00
jdn06
99dc1a2865 Include thumb_video_delay in tests 2015-02-23 23:40:19 +01:00
Antoine Pitrou
e5b7e53e51 Fix #118: allow passthrough of original files 2014-10-05 16:50:01 +02:00
Simon Conseil
a0ed5d88ff Use cached properties to simplify the access to exif metadata. 2014-09-27 00:35:42 +02:00
Simon Conseil
8f45c2c1cd Fix encoding issue with accentuated files. 2013-12-17 00:19:46 +01:00
Simon Conseil
ed7903c26d Docstrings 2013-09-23 00:32:32 +02:00
Keith Johnson
236e6e9a33 Fix testcase for GPS info
GPS coordinates for the sample photo were incorrect in the test case. Found the correct coordinates from: http://regex.info/exif.cgi
2013-09-22 15:23:11 -04:00
Matthias Vogelgesang
e98b76f401 Add test case for GPS tags
This also adds a sample image licensed under CC-BY-NC from jerquiaga located at
Flickr: http://www.flickr.com/photos/jerquiaga/2394751088/
2013-08-14 10:27:08 +02:00
Matthias Vogelgesang
da4c9c4f6c Pass settings dictionary to generate_image
Reduce the amount of parameters to pass necessary to generate an image.
2013-08-04 14:34:54 +02:00
Matthias Vogelgesang
9dcacec2f5 Remove unused image processing parameters
This change removes the autoconvert and format parameters. In all call
situations they were either not set or set to the default value anyway.
2013-08-04 14:17:02 +02:00
Matthias Vogelgesang
c0c9b29622 Insert 'exif' and 'raw_exif' keys into media_ctx 2013-08-01 09:39:54 +02:00
Matthias Vogelgesang
33e8538e1d Add a test case for copying EXIF data 2013-08-01 09:39:54 +02:00
Simon Conseil
e6c9bc6121 More tests 2013-05-15 00:15:28 +02:00
Simon Conseil
8cbad2b3c4 Move sample pictures to a sub-directory 2013-05-07 00:30:07 +02:00
Simon Conseil
42c667ab7e Fix a test with generate_thumbnail 2013-04-21 01:03:30 +02:00
Simon
692a036237 Move to pilkit.
Replace the custom code in the image module by pilkit generators.
2013-04-21 00:44:45 +02:00