Giter Site home page Giter Site logo

Comments (7)

nhoizey avatar nhoizey commented on May 19, 2024 4

I've made huge progress towards my aim to use standard Markdown syntax for images and yet generate responsive images. I'm using Eleventy transforms for that, enhancing the standard images HTML <img src="…"> to <img src="…" srcset="…" sizes="…"> and even embedding it in a <figure> if/when it makes sense.

I'll try to release it soon as a plugin that would support Cloudinary at first (I'm using it), but potentially other image CDNs, or even home made solutions.

Sorry for the teasing, but I wanted to let you know it will come soon, at last. 😁

from eleventy.

nhoizey avatar nhoizey commented on May 19, 2024 2

Teasing is over, here's my plugin for simple responsive images in Eleventy:
https://github.com/nhoizey/eleventy-plugin-images-responsiver/

eleventy-plugin-images-responsiver is "just" a thin layer between Eleventy plugin and transformations system and images-responsiver, a generic HTML transformation Node.js module for simple responsive images.

Eleventy uses Markdown-it to transform Markdown into HTML, and then runs the transform added by eleventy-plugin-images-responsiver, which calls images-responsiver to actually transform the HTML.

Neither eleventy-plugin-images-responsiver nor images-responsiver transform (resize) the image files, there are multiple ways to do so: https://nhoizey.github.io/images-responsiver/tutorial-05-images-urls.html

from eleventy.

zachleat avatar zachleat commented on May 19, 2024 1

I think this is going to be closely tied to what gets formulated for #13.

from eleventy.

eeeps avatar eeeps commented on May 19, 2024

I, for one, (am completely biased but) think this is a great idea! And would of course love to help make it a reality.

I had some simmilar thoughts when seeing this: https://twitter.com/zachleat/status/943502658295476225 ...

@zachleat how exactly do you envision static asset handling things “layering on top?”

from eleventy.

Wilto avatar Wilto commented on May 19, 2024

A monitor lizard, captioned with “I am monitoring this thread”

from eleventy.

zachleat avatar zachleat commented on May 19, 2024

This repository is now using lodash style issue management for enhancements (see https://twitter.com/samselikoff/status/991395669016436736)

This means enhancement issues will now be closed instead of leaving them open. The enhancement backlog can be found here: https://github.com/11ty/eleventy/issues?utf8=%E2%9C%93&q=label%3Aneeds-votes+sort%3Areactions-%2B1-desc+

from eleventy.

eeeps avatar eeeps commented on May 19, 2024

Now that we have shortcodes - here's a (very basic) start: https://github.com/eeeps/eleventy-respimg

from eleventy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.