Commit Graph

5 Commits

Author SHA1 Message Date
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 c523b100cc Modify `dirname` to be relative to `base_path` 2015-12-27 22:41:04 +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 4112992565 include Utils rather than calling static methods 2014-12-07 22:03:26 +00:00
Joseph Wynn 6f9f13e62f Implement responsive_image_block tag 2014-12-07 13:06:28 +00:00