nhoizey / images-responsiver

Global solution for responsive images, transforming simple image HTML syntax into better responsive images syntax.

Home Page:https://nhoizey.github.io/images-responsiver/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Images Responsiver

GitHub stars Follow @nhoizey@mamot.fr

Images Responsiver tries to help developers make it easy for content authors to tackle responsive images needs.

Why does this project exist?

As Steve Jobs once said:

You've got to start with the customer experience and run backwards to the technology.

Responsive images are one of the most difficult topics nowadays for front end developers and content authors, they involve multiple features and syntaxes, but they are required to provide a good performance to Web users.

Most content authors should not have to learn the complex responsive images HTML syntax, how and it is used by browsers to load the right image for current viewing context.

A Node.js package

Images Responsiver transforms plain, simple <img src="…"> HTML tags into better responsive images syntax with srcset and sizes attributes.

Knowing that <picture> is only required for rare advanced usages, Images Responsiver should be enough for most use cases, where the need is known as Resolution Switching.

Read this article on Cloudfour's blog to know more of the theory.

A plugin for Eleventy

Images Responsiver is also available as a plugin for Eleventy, an awesome Static Site Generator.

It allows authors to use the simple and standard Markdown syntax for images — ![alt text](image.jpg) — and yet get responsive images in the generated HTML.

Contributing

First, thank you for considering contributing to images-responsiver! It's people like you that make the open source community such a great community! 😊

There are many ways to contribute to this project. Get started here.

Tools and automations

License

This project is licensed under the MIT License.

Authors

See also the list of contributors who participated in this project.

About

Global solution for responsive images, transforming simple image HTML syntax into better responsive images syntax.

https://nhoizey.github.io/images-responsiver/

License:MIT License


Languages

Language:JavaScript 98.6%Language:Shell 1.4%