Commit Graph

57 Commits

Author SHA1 Message Date
Joseph Wynn aba1d58246 Enable "cache" option in _config.yml
Fixes #66
2017-07-16 21:22:24 +01:00
Joseph Wynn b1ac375f60 1.3.1 2017-07-01 15:08:28 +01:00
Joseph Wynn bd52112bae 1.3.0 2017-06-21 19:48:27 +01:00
Jeric Bryle Sy Dy 93bb666bff option to directly save resized images to destination directory (#49) 2017-06-20 16:55:58 +08:00
Joseph Wynn a23bdf5895 Fix auto_rotate name in Jekyll::ResponsiveImage::Config#DEFAULTS 2017-03-13 08:41:37 +00:00
Joseph Wynn 7ad3967c71 Minor version bump for new functionality 2017-03-12 14:16:20 +00:00
Joseph Wynn ffc51f648b Rename auto rotate option to auto_rotate 2017-03-12 14:14:45 +00:00
jameswood db264444ac rotate resized images based on exif info
EXIF rotation information embedded by the capture device is now
respected when generating output images. Original images remain
untouched.
2017-03-10 16:03:03 +11:00
Joseph Wynn fd041dc44a 1.1.0 2016-12-28 23:19:25 +13:00
Joseph Wynn 8fa0543494 Maintain source image interlace mode 2016-12-28 23:14:13 +13:00
Joseph Wynn 03356da52d Rename gem to jekyll-responsive-image
This PR also drops support for Ruby <2.0
2016-12-28 22:56:27 +13:00
Joseph Wynn dba32db868 v1.0.1 2016-10-16 18:08:07 +01:00
Joseph Wynn 9a4f6dc9d0 1.0.0 2016-10-14 21:21:20 +01:00
Joseph Wynn 854aa4cf00 pre4 2016-10-11 23:25:43 +01:00
Joseph Wynn 0d3f099057 Fix for using a custom `source` directory
Paths are still passed around as relative. Code which needs to read files
(images, templates) and code which needs to manipulate paths
(Jekyll::ResponsiveImage::Utils#image_hash) has to be aware of the site source
path.

This got a bit messy in the end, but I couldn't find a better way without doing
a big refactor of the entire plugin.
2016-10-11 23:25:43 +01:00
Joseph Wynn 83358e79b5 Resize handler tweaks 2016-10-11 23:25:43 +01:00
Joseph Wynn 4de5db835d Refactor to config class 2016-10-11 23:25:43 +01:00
Joseph Wynn 354f693afc Another refactor to try and avoid `include` 2016-10-11 23:25:43 +01:00
Joseph Wynn 06d34e09d2 1.0.0.pre3 2016-09-25 21:41:19 +01:00
Joseph Wynn bd336070e1 Fix absolute path bug (#35)
* Fix file contents test

* Fix tests to catch the bug

* Fix bug where `original.path` was absolute
2016-09-25 21:37:10 +01:00
Joseph Wynn 707b1078c5 1.0.0.pre 2016-09-25 20:30:45 +01:00
Joseph Wynn efeb87a032 Treat paths as relative to Jekyll `source` directory (#34)
* Move 'fixtures' to 'test-site' because, like, that's what it is

* Refactor to make reasoning about file paths easier

* Write a failing test

* Conventions, conventions

* Always treat paths as relative to the Jekyll site source
2016-09-25 20:23:06 +01:00
Joseph Wynn a7d96b2bf8 0.18.0 2016-09-02 22:06:45 +01:00
Joseph Wynn 7aded68117 UTF-8 support (#31)
* Create failing test case

* Force image filename encoding to UTF-8. Fixes #30
2016-09-02 08:53:29 +01:00
Joseph Wynn 7f53f3a25a 0.17.0 2016-06-05 22:33:13 +01:00
Joseph Wynn 08bdd3b1f6 Resize extra images (#23)
* Switch deprecated {File,Dir}#exists? for #exist?

* Implement extra_images configuration.

Closes #21.
2016-06-05 22:32:13 +01:00
Joseph Wynn cd790993d3 0.16.0 2016-03-17 08:27:20 +00:00
Paul Adenot a9cf918103 Destroy the original image when done with resizing
When re-sizing a bunch of 24 megapixels image (direct from a digital camera) into responsive images, not destroying the `img` member made my server OOM (it does not have a lot of RAM, it's a cheap VPS).

Additionally, when re-generating the site, although there was no need to re-generate the images, it looked like it was still loading them up, and the GC was not kicking in so it was OOM-ing (or close to OOM-ing) as well.

This fixes both issues.
2016-03-16 18:35:34 +01:00
Joseph Wynn 4c238e6314 v0.15.0 2016-02-02 20:58:18 +00:00
Joseph Wynn b77d0b83d0 [Experimental] enable internal caching of responsive_image_block tag results 2016-02-02 20:46:22 +00:00
Joseph Wynn ecdbbfd2b0 [Experimental] enable internal caching of responsive_image tag results 2016-02-02 20:33:24 +00:00
Joseph Wynn 204f732d71 v0.14.0 2016-01-12 08:17:20 +00:00
Joseph Wynn c523b100cc Modify `dirname` to be relative to `base_path` 2015-12-27 22:41:04 +00:00
Joseph Wynn 64f86bd6da Add `dirname` to image hashes. Closes #5. 2015-12-27 21:14:24 +00:00
Joseph Wynn 759058dc26 0.13.0 2015-11-05 09:24:24 +00:00
Joseph Wynn 04eb007f18 Inject the Jekyll Site payload into the Liquid render attributes
This enables the use of `site` and `jekyll` variables.

Closes #1.
2015-11-05 09:03:44 +00:00
Joseph Wynn 7b12cb6eea 0.12.0 2015-11-04 23:23:36 +00:00
Joseph Wynn 1917b905ff Copy generated files to _site and add output directory to keep_files 2015-11-04 23:22:04 +00:00
Joseph Wynn 07e01bbe05 0.11.3 2015-04-15 20:49:38 +01:00
Joseph Wynn f7b20798a7 0.11.2 2015-04-15 20:43:41 +01:00
Joseph Wynn 45918023f0 Better error messages 2015-04-15 20:43:41 +01:00
Joseph Wynn 6c23fa03be 0.11.1 2014-12-07 22:33:26 +00:00
Joseph Wynn 1d9396dbd9 Properly handle nil image path 2014-12-07 22:33:14 +00:00
Joseph Wynn ddff9d7cc1 Extract common image processing into a module 2014-12-07 22:17:19 +00:00
Joseph Wynn 4112992565 include Utils rather than calling static methods 2014-12-07 22:03:26 +00:00
Joseph Wynn 5a0cc4052c 0.11.0 2014-12-07 13:15:03 +00:00
Joseph Wynn 6f9f13e62f Implement responsive_image_block tag 2014-12-07 13:06:28 +00:00
Joseph Wynn c8d48350b1 0.10.0 2014-12-06 22:34:17 +00:00
Joseph Wynn 2715d55520 Swap output_dir for more powerful output_path_format 2014-12-06 22:28:21 +00:00
Joseph Wynn b9407d113b Remove superfluous instance variable 2014-12-06 20:56:54 +00:00