Commit Graph

340 Commits

Author SHA1 Message Date
Simon Conseil
29def4e0e8 More tests for get_thumb 2013-08-18 23:13:34 +02:00
Simon Conseil
03fd26954b Merge pull request #29 from matze/exif-gps
Read GPS coordinates from EXIF tags
2013-08-18 13:39:47 -07: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
4940bbdc0c Read GPS coordinates from EXIF tags
If GPS information can be found in the EXIF tags, latitude and longitude will be
extracted and added to the `media.exif.gps` variable. Some ideas how to get the
GPS tags from the EXIF tags where borrowed from Eran Sandler's gist (licensed
under MIT license):

    https://gist.github.com/erans/983821
2013-08-14 10:21:31 +02:00
Simon Conseil
58a9c7d51a Merge pull request #30 from matze/adjust-images-after-resizing
Adjust images after resizing
2013-08-08 11:02:08 -07:00
Simon Conseil
520a50b448 Update CONTRIBUTING 2013-08-07 23:19:01 +02:00
Matthias Vogelgesang
9f80a33d9c Add adjust_options
This gives the user the ability to process the images after resizing them. In
particular, the color, contrast, brightness and sharpness can be adjusted.
2013-08-04 14:41:39 +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
Simon Conseil
93f5371209 oups, fix a broken test ... 2013-08-04 01:12:29 +02:00
Simon Conseil
cbb714d4d4 Put the galleria video css in the main css file 2013-08-04 01:08:59 +02:00
Simon Conseil
9ab3ef9af5 Correct themes design with long directory names (fix #20). 2013-08-04 00:56:43 +02:00
Simon Conseil
952f4dc20b zip colorbox 2013-08-04 00:42:43 +02:00
Simon Conseil
626c246601 Cut the long directory names for printing 2013-08-04 00:39:01 +02:00
Simon Conseil
831096ac9d pep8 2013-08-04 00:27:47 +02:00
Simon Conseil
8d708917ba Add links to download zip archives 2013-08-03 23:47:34 +02:00
Simon Conseil
178b01a737 Add setup.cfg and CONTRIBUTING.md
See http://hynek.me/articles/sharing-your-labor-of-love-pypi-quick-and-dirty/
2013-08-03 19:39:15 +02:00
Simon Conseil
fa9212725b Merge pull request #28 from matze/fix-zip
Set `zip_gallery` only when one is available
2013-08-03 07:41:03 -07:00
Matthias Vogelgesang
fdb8a2c18b Add documentation for zip_gallery 2013-08-03 16:31:28 +02:00
Matthias Vogelgesang
67d603baac Set zip_gallery only when one is available
This change introduces a new variable `zip_gallery` to the Jinja context. It is
only set to `settings.zip_gallery` if a directory has a zipped archive.
2013-08-03 16:29:57 +02:00
Simon Conseil
f470c269a3 Merge pull request #27 from matze/misc-cleanup
Miscellaneous changes
2013-08-03 06:59:28 -07:00
Simon Conseil
4efb5c2e7f Merge pull request #26 from matze/update-docs
Describe template variables
2013-08-03 06:53:42 -07:00
Matthias Vogelgesang
d3fdfccac9 Add AUTHORS 2013-08-03 15:51:08 +02:00
Matthias Vogelgesang
96a5f4d7d3 Include README.rst in index.rst
This reduces redundancies and potential inconsistencies between the README and
the main docs.
2013-08-03 15:51:08 +02:00
Matthias Vogelgesang
4c233b692b PEP8ify 2013-08-03 15:51:04 +02:00
Matthias Vogelgesang
02b8a703fc Fix exif/raw_exif and add datetime documentation 2013-08-03 15:45:51 +02:00
Matthias Vogelgesang
e7385b9d0d Ignore setup.py's build/ directory 2013-08-02 08:24:34 +02:00
Matthias Vogelgesang
467fbd7e3d Describe template variables 2013-08-02 08:14:42 +02:00
Simon Conseil
e0a2205b08 Merge pull request #25 from matze/exif-support
Add EXIF support
2013-08-01 14:25:26 -07:00
Matthias Vogelgesang
805647c029 Set the (overridable) locale
If the locale is not set, the user might be surprised to see strftime() output
to be in English rather than in his native language.
2013-08-01 09:51:24 +02:00
Matthias Vogelgesang
c4209ebde0 Add datetime object to media.exif 2013-08-01 09:39:54 +02:00
Matthias Vogelgesang
c0c9b29622 Insert 'exif' and 'raw_exif' keys into media_ctx 2013-08-01 09:39:54 +02:00
Matthias Vogelgesang
f92ddd8854 Make EXIF reading more robust and streamlined 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
Matthias Vogelgesang
1155d536b3 Make copying EXIF data optional 2013-08-01 09:39:54 +02:00
Matthias Vogelgesang
6e9f6b7d52 Read EXIF tags and put them in the media context 2013-08-01 09:39:21 +02:00
Matthias Vogelgesang
129c8b736d Preserve EXIF tags when resizing 2013-08-01 09:39:21 +02:00
Simon Conseil
6d68112597 Merge pull request #23 from matze/zip-galleries
Add option to zip galleries
2013-07-30 12:57:51 -07:00
Matthias Vogelgesang
e5dd7b890b Remove obsolete setting 2013-07-30 21:54:50 +02:00
Simon Conseil
656a8d3b3a Merge pull request #24 from matze/fix-breadcrumb
Fix breadcumb -> breadcrumb
2013-07-30 12:48:04 -07:00
Matthias Vogelgesang
c80896da12 Fix breadcumb -> breadcrumb 2013-07-30 10:48:13 +02:00
Matthias Vogelgesang
77274f00cf Add test cases for zipping galleries 2013-07-30 09:00:38 +02:00
Matthias Vogelgesang
9e1ff67e8f Use single setting name 2013-07-30 09:00:05 +02:00
Matthias Vogelgesang
80b5ae5505 Set zip_gallery to TRUE only if archive exists 2013-07-29 11:08:53 +02:00
Matthias Vogelgesang
37921e6d49 Add option to zip galleries
When `zip_gallery` is True, each original file will be added to an archive named
`zip_name` located in the gallery directory.
2013-07-28 19:05:06 +02:00
Simon Conseil
4ad831c786 Add some docs about PIL / Pillow (ref #22). 2013-07-26 00:01:55 +02:00
Simon Conseil
1cef533bd8 Check jinja2's version for lstrip_blocks, added in version 2.7 (fix #21). 2013-07-26 00:01:55 +02:00
Simon Conseil
e88617298d Merge pull request #18 from chmduquesne/master
Adding support for videos
2013-07-21 06:07:51 -07:00
Christophe-Marie Duquesne
080742c02e oops, bad merge 2013-07-21 14:43:55 +02:00
Christophe-Marie Duquesne
c4a751d366 adding tests for the video module 2013-07-21 14:42:28 +02:00