Closed heeplr closed 3 years ago
Hey! The plugin doesn't support having multiple resize targets at the moment, although this is a pretty nice feature request! I haven't thought this through fully, but perhaps multiple configs would work? For example:
responsive_image:
- name: thumbnails
template: _includes/thumbnail-image.html
default_quality: 60
sizes:
- width: 160
- width: 320
- width: 640
auto_rotate: true
strip: true
- name: portrait
template: _includes/portrait-image.html
sizes:
- width: 640
- width: 800
- width: 1024
- width: 2048
And then you would specify which config to use on a per-tag basis:
{% responsive_image config: portrait path: assets/image.jpg %}
I haven't thought this through fully
Sounds hard. Everything good can be made better and this plugin works flawlessly. Thanks a lot for writing it, btw!
but perhaps multiple configs would work
Yes! That was exactly what I intuitively looked for in the docs. I think this would be the best solution for my issue and it would provide a bunch of other possibilities, like stripping EXIF data selectively for certain groups of images etc.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I was looking for just this as well. Is such a feature on the cards?
I have 2 types of images: People Portraits and Link Thumbnails.
Is there a way I could generate those two sets with jekyll-responsive-image ?
(I'm probably missing something but I couldn't think of an unhackish solution.)