rbuchberger / jekyll_picture_tag

Easy responsive images for Jekyll.
https://rbuchberger.github.io/jekyll_picture_tag/
BSD 3-Clause "New" or "Revised" License
619 stars 103 forks source link

Generate only 2 images? #100

Closed AndreiJosan closed 5 years ago

AndreiJosan commented 5 years ago

Hello! First of all, thanks a lot for this, i know it's the right plugin for this task 😄

I've been trying to achieve something and failing miserably. My use case is that I only need to have the original image and generate a smaller variant of it to use it a specific place.

How can I do the config to achieve this and not generate so many assets? Any idea how I could go around this? Thanks!

rbuchberger commented 5 years ago

Hey! You'll need to set up a preset. You can see an example config here: https://github.com/robwierzbowski/jekyll-picture-tag/blob/master/examples/_data/picture.yml

There are a few ways to go about it, depending on what you mean by "a specific place". You can see the different output formats in the readme.