Commit Graph

117 Commits

Author SHA1 Message Date
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 0c342075c7 Set the linguist-vendored attribute on features/test-site/*
This prevents Linguist from including the directory in the GitHub language stats
2017-01-09 11:37:19 +13:00
Joseph Wynn 00ded027ad Tidy up tests 2016-12-29 22:19:48 +13:00
Joseph Wynn 85b56541fb Merge pull request #44 from wildlyinaccurate/remove-redundant-tests
Remove redundant tests
2016-12-29 22:08:24 +13:00
Joseph Wynn 746205e726 Consolidate some tests to reduce the test:code ratio 2016-12-29 22:04:49 +13:00
Joseph Wynn ba3db6eba7 Use SimpleCov directly so that coverage can be inspected locally 2016-12-29 22:00:36 +13:00
Joseph Wynn fd041dc44a 1.1.0 2016-12-28 23:19:25 +13:00
Joseph Wynn c8eb8c0c58 Merge pull request #42 from wildlyinaccurate/maintain-source-interlace
Maintain source image interlace mode
2016-12-28 23:18:58 +13:00
Joseph Wynn c2e3465a7e Fix `rake release` 2016-12-28 23:16:20 +13:00
Joseph Wynn 8fa0543494 Maintain source image interlace mode 2016-12-28 23:14:13 +13:00
Joseph Wynn 804d30dbb5 Merge pull request #41 from wildlyinaccurate/rename-gem
Rename gem to jekyll-responsive-image
2016-12-28 23:13:01 +13:00
Joseph Wynn d7451d2681 Typo 2016-12-28 22:58:04 +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 8d962b2631 Merge pull request #39 from wildlyinaccurate/clean-up-tests
Remove some redundant test code
2016-10-18 22:13:44 +01:00
Joseph Wynn 39ee353912 Remove some redundant test code 2016-10-18 22:11:06 +01: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 1d7273ec5a Merge pull request #36 from wildlyinaccurate/source-directory-take-2
Take 2 of "treat paths as relative to Jekyll `source` directory"
2016-10-14 21:18:45 +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 6d569710b9 More test improvements 2016-10-11 23:25:43 +01:00
Joseph Wynn b47f12a1db An actual failing test now 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 a1a183c3d4 More Ruby 1.9 fixes (#37)
* Pin terminal-ansicolor to 1.3.0

* Pin mime-types to <3

* Pin rest-client to <2

* Pin tins to 1.6.0
2016-10-11 23:25:33 +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 098b3117a8 Add missing documentation for `extra_images` config 2016-09-25 20:30:39 +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 6c8e02bb11 Update compositor.json 2016-09-04 18:43:38 +01:00
Joseph Wynn 3383c75f53 Gemspec cleanup
- Remove test_files
 - Only include files from lib/
 - Use the `z` flag with git-ls-files for UTF-8 support
2016-09-02 22:48:11 +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 40cc9cbad7 Lock to earlier version of simplecov for older Ruby platforms (#32)
* Lock to earlier version of simplecov for older Ruby platforms

Necessary due to the loose json dependency detailed in colszowka/simplecov#511

* Stop running tests on Rubinius (I'm sorry, rbx users!)
2016-09-02 08:41:42 +01:00
Joseph Wynn 4ca0a40486 Nope, it's definitely jekyll/responsive_image 2016-07-23 11:16:38 +01:00
Kevin Funk 25b2308bd6 update README.md to include brace expansion option (#27) 2016-07-08 09:03:26 +01:00
Nathan Arthur 8b642d4b2a Add option alt support into srcset template (#24) 2016-06-08 09:50:23 +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 f63b5002dd Trigger RenderCache#get by including an image twice (#22) 2016-06-05 22:30:45 +01:00
Joseph Wynn 794f1c619a Everything is nicer with square badges 2016-03-17 08:45:02 +00:00
Joseph Wynn cd790993d3 0.16.0 2016-03-17 08:27:20 +00:00
Joseph Wynn e6fc2bc3bd Merge pull request #19 from padenot/patch-1
Destroy the original image when done with resizing
2016-03-17 08:26:34 +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 936dfc2abe Merge pull request #16 from wildlyinaccurate/only-build-on-rubinius-2
Restrict Rubinius versions to 2.x
2016-02-26 12:30:40 +00:00
Joseph Wynn a3fbe0ade1 Restrict Rubinius versions to 2.x 2016-02-26 12:20:50 +00:00
Joseph Wynn 23e5a79d81 Improve installation instructions. Closes #14. 2016-02-25 09:03:51 +00:00
Joseph Wynn 4c238e6314 v0.15.0 2016-02-02 20:58:18 +00:00