Simon Conseil
3382e3e727
Add the original image to the context
2013-05-14 23:50:12 +02:00
Simon Conseil
92474b7c3a
Normalize the theme path if needed and add more logging
2013-05-08 00:02:55 +02:00
Simon Conseil
34c96d9742
Add new settings for the source and destination directories.
2013-05-07 00:58:11 +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
Simon
e33761ae15
Test the settings and gallery modules with pytest.
2013-03-12 21:56:58 +01:00
Simon
4720001d82
Bugfix for PNG files which don't have exif metadata ( closes #11 ).
...
- add a test for the _getexif method
- add a png file in the sample directory
2013-03-12 18:30:44 +01:00
Simon
57eb9cf456
Remove the copy exif feature.
...
This feature was not really needed as the exif metadata were just copied to the
generated image. Moreover, this was depending on pyexiv2 which is now deprecated
in favour of GExiv2.
2013-03-04 00:08:55 +01:00
Simon
fe4daee706
Cleanup the tests config file as it is no more used as an example in the docs.
2013-02-23 16:26:35 +01:00
Simon
f646a212f9
Forget to add a test directory in the previous commit ...
2013-02-23 15:48:42 +01:00
Simon
16ac982efe
Bugfix for the removal of empty sub-directories.
2013-02-23 15:39:51 +01:00
Simon
e6c3de5999
Find the thumbnail in all the sub-directories.
2013-02-20 23:19:17 +01:00
Simon
4118bdd141
Improve test_thumb
2013-02-19 22:59:50 +01:00
Simon
655f46a102
Add a test for the get_thumb function.
2013-02-19 00:55:39 +01:00
Simon
2679abefed
Fix an issue to find the thumbnail of a directory with only sub-categories, and
...
refactor.
2013-02-19 00:51:11 +01:00
Simon
5c2a7f9887
Add a sub-directory to the tests and refactor test_gallery.
2013-02-19 00:17:21 +01:00
Simon
025b868a91
Change "representative" to "thumbnail".
2013-02-18 00:33:47 +01:00
Simon
165ab19500
Move the paths dict to a dedicated class.
2013-02-16 17:51:51 +01:00
Simon
4ab124fceb
Don't process directories that do not contain images.
2013-02-08 12:30:29 +01:00
Simon
7b099b766a
Replace the jpg_quality setting with a dict of options.
...
Pass a dict with PIL options (quality, optimize, progressive).
Enlarge the MAXBLOCK buffer of ImageFile if there is an error (for the
progressive mode).
2013-01-21 23:36:21 +01:00
Simon
99ef37879b
Add a setting to specify a list of links and adapt the themes to show the links.
2013-01-03 00:51:18 +01:00
Simon
14224154f1
Add a setting to optionally add index.html to the URLs ( fix #8 ).
2012-12-21 23:41:32 +01:00
Simon
3638b0b02c
Update the docs.
2012-12-18 00:34:14 +01:00
Simon
60e16f1a43
Add a setting for Google Analytics.
2012-12-15 00:47:50 +01:00
Simon
488da4c497
Rename the copy exif setting.
2012-12-15 00:17:33 +01:00
Simon
7d3e7bb207
Move the configuration to a python file.
...
After a long hesitation ... but this will allow to use tuple, etc.
2012-12-15 00:13:08 +01:00
Simon
3c7d6449d2
Store the list of directories and loop on directories in reversed order, to
...
process subdirectories before their parent (fix #6 ).
2012-12-11 00:05:52 +01:00
Simon
258b76b84e
Add tests for the Image class.
2012-11-27 23:47:16 +01:00
Simon
ec2be44146
Add a test for the copy_exif function.
2012-11-27 23:31:12 +01:00
Simon
4ffe0701fa
fix tests for python 2.6, importing unittest2 if necessary
2012-11-22 13:59:42 +01:00
Simon
d2f135435a
change the default theme to colorbox
2012-11-22 13:44:21 +01:00
Simon
357c93f14e
improve description of settings
...
detail settings in tests/sample/sigal.conf and use this file in the docs.
2012-11-09 14:45:53 +01:00
Simon
6cc611773e
rename settings and use strings for default settings otherwise an error is
...
raised if a setting is not in the config file.
Renames:
- big_img to keep_orig
- bigimg_dir to orig_dir
2012-11-09 13:50:07 +01:00
Simon
2bbf14ce93
add a thumb_suffix setting and create a function to get the path of a thumbnail
2012-11-09 13:36:17 +01:00
Simon
6fcaa01e90
improve tests for gallery
2012-11-09 13:07:03 +01:00
Simon
b0564e6c80
modify test samples
...
- add spaces in filenames
- add a subdirectory
2012-11-09 13:03:44 +01:00
Simon
1a85719e5c
fix tests for gallery
2012-11-07 01:01:12 +01:00
Simon
6559f46e2a
rename fileextlist to ext_list + minor style improvements
2012-11-01 00:21:54 +01:00
Simon
1ca35ce1b2
update the sample data
2012-10-31 23:58:02 +01:00
Simon
4d41236c2a
simplify Gallery parameters
2012-10-30 00:27:12 +01:00
Simon
8fbd43f4d5
move Gallery in its own module
2012-10-29 23:48:55 +01:00
Simon
8998141395
pep8
2012-10-29 23:28:22 +01:00
Simon
900da9d42f
add a make_thumbs setting to allow not generating thumbnails as they are not
...
needed for the galleria theme.
+ always generate thumbnail for the representative image
+ bugfixes for the boolean settings
2012-08-26 00:30:05 +02:00
Simon
e9c9cd1637
convert the sample description files to markdown
2012-08-26 00:30:04 +02:00
Simon
6fe0f3d331
keep the original ratio for the resized image
2012-08-26 00:29:51 +02:00
Simon
88175f02c7
use ImageOps.fit to create the thumbnails cropped to thumb_size, if the
...
thumb_fit params is True (replace the square_thumb param).
2012-08-07 00:15:17 +02:00
Simon
8306351e6d
use assertItemsEqual as the order of the list of files returned by os.walk is
...
not always the same.
2012-08-06 00:14:54 +02:00
Simon
34510f0050
test_image - rename the class
2012-07-15 22:45:33 +02:00
Simon
b1e704169f
increase thumbnail size for the sample gallery
2012-07-02 00:08:33 +02:00