-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
Questions regarding eleventy-img config #247
Comments
I'd also like to know how to use |
+1 to the full example. |
Had the same issue. Honestly very disappointing how poorly thought out this whole image processing side of things seem. Built my blog in 1 day and decided to ignore images. Here is my workaround. We know the So quick fix is just modify the shortcode function to split the string on the
now simply pass in your width & height as pixels via string like so: edit: I kept playing around with this and have now just adopted to pass any |
I used your
elventy.conifg.image.js
in my project. I only had to change the object for the relative path, because the images are all in one assets folder. Thank you so much sharing this config. That helped me a lot.Not sure if this is the right place for asking those questions. However, I’ll try it anyway:
img
tag used thewidth
andheight
attributes from the original image size, which is 600px? It loads the smaller version, which is 300px.img
not uses thesrcset
andsizes
attributes?And a bonus question ;-) Would it make sense to use an example how to use all parameter possible within the shortcode in this starter? I found only one example without
srcset
andsizes
.The text was updated successfully, but these errors were encountered: