wildlyinaccurate/jekyll-responsive-image

Optionally remove resized images from source directory

Closed this issue · 2 comments

Would it be possible to optionally remove (or ideally not create in the first place) the resized images from the source directory and only keep them in the target _site directory?

My Jekyll set up is a single repo with source branch and a git submodule for the master branch. The source branch contains all the posts in markdown format and the master branch contains the built site.

I do check the resized images into source control but don't want to check them in twice. Is this something that can be accommodated?

That sounds pretty similar to some of my setups. My resize images all go into an assets/resized directory which is easy to add to .gitignore, but I realise not everyone uses a separate directory for the resized images.

I'll look into adding an option to only create resized images in the destination directory.