-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use Cloudinary’s auto-breakpoint generation, somehow? #12
Comments
It would be great, indeed. I'll try to find a way! |
So I asked about this and the response was:
Here’s the link to the explicit API docs Some other helpful nuggets:
|
Hopefully I’ll find some time over the next few months to work on this. In the meantime... The cleanest API for this would be a single new optional side-wide parameter, named something like We can use that + the existing "https://res.cloudinary.com/#{settings["cloud_name"]}/image/#{type}/#{transformations_string}w_auto:breakpoints_#{min_width}_#{max_width}_#{bytes_step}_#{steps}:json/#{image_dest_url}" That will return something like: {"breakpoints":[100,473,751,1000]} That’s easy enough to iterate over to build a Big unanswered questions which I need to brush up on my Jekyll to answer—
1: |
I've been fooling with this. Hopefully I'll have some code to show soonish, but I'll attempt to answer my own questions:
In a Jekyll data file! Breakpoints stored here should be readable from within the plugin via
I'm still working on a sloppy proof of concept, so – TBD! |
The
min_size
/max_size
/steps
preset config parameters are cool.What would be really cool is to somehow use Cloudinary’s responsive breakpoint generation logic to dynamically figure out the number of steps based on ideal filesize jumps. I'll think about/ask if there are good ways to do this...
The text was updated successfully, but these errors were encountered: