Commit Graph

73 Commits

Author SHA1 Message Date
Joseph Wynn dda6d748c8
1.6.0 2021-02-24 12:37:30 +13:00
Joseph Wynn a31c454ed1
Merge pull request #103 from salomvary/master
Add registers.site to context when rendering template
2021-02-24 12:29:45 +13:00
Joseph Wynn f2be2c53be
1.5.5 2021-01-25 17:10:01 +13:00
Joseph Wynn 6cc3a082a1
Automatically convert tabbed indentation to spaces 2021-01-25 17:10:00 +13:00
Joseph Wynn 2f7c0124eb
1.5.4 2021-01-25 17:10:00 +13:00
Márton Salomváry 25c6695da4 Add registers.site to context when rendering template
Fixes #101.
2021-01-01 14:07:03 +01:00
Daniel Pietzsch 82e868966c Making sure full image is loaded when auto_rotate config option is used
because then we need the full image right at the start – as before – and 
there's no need to load "properties only" first, to then load the full 
image right after.
2020-11-08 21:43:29 +01:00
Daniel Pietzsch fbc35b8ef9 Loading full images when auto_rotate option is turned on.
Because we need the full image for the auto rotation
2020-11-07 23:30:23 +01:00
Daniel Pietzsch 749e6cc068 By default, loading images using .ping instead of .read
This gives an increase in performance and reduces memory usage when a 
lot of resized images already exist. Because this now by default loads 
only images meta data – omitting pixel data.

Pixel data is only loaded when an images actually needs resized versions 
generated.
2020-11-07 23:05:27 +01:00
Joseph Wynn 8cb3c53dd7
1.5.3 2019-09-05 14:46:26 +12:00
Joseph Wynn 91a540c266
Warn when image doesn't exist instead of throwing SyntaxError 2019-09-05 14:45:32 +12:00
Joseph Wynn c559bcced3
Usability: Don't raise an exception when config is missing or invalid 2018-06-30 19:39:58 -07:00
Joseph Wynn 1df929e20d
Bump version to 1.5.1 2018-06-20 13:14:07 -07:00
Christopher Peterson aaaabbc2c0 Add condition to extra image generation to only operate on 'files' returned by the glob 2018-06-12 09:49:24 -04:00
Joseph Wynn 311f434ed7 Bump version to 1.5.0 2018-01-23 15:07:14 +13:00
Bert Driehuis 826b5f715e Add option to strip EXIF profiles 2018-01-19 01:08:35 +01:00
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