Skip to content

Releases: saneef/eleventy-plugin-img2picture

v5.0.0

02 Dec 08:02
f5a68b6
Compare
Choose a tag to compare

Added

  • Support for SVG image files.
    Breaking: Optimises SVG images by default. If, you want to skip SVG files, use options, extensions: ["jpg", "png", "jpeg"] without svg.

Changed

  • Breaking: Generates fallback image of smallest in width instead of medium width.
  • Uses generateObject from Eleventy Image to generate <picture> HTML

Full Changelog: v4.1.3...v5.0.0

v4.1.3

22 Oct 21:10
8ded9da
Compare
Choose a tag to compare

What's Changed

  • Fix: Remote URLs with query params are skipped (See: #22)

Full Changelog: v4.1.2...v4.1.3

v4.1.2

22 Sep 21:28
dc2caa2
Compare
Choose a tag to compare

Full Changelog: v4.1.1...v4.1.2

  • Bumps Eleventy Image to v3.1.1. It comes with an important sharp dependency upgrade for a libwebp vulnerability. See lovell/sharp#3798 for more info.

v4.1.1

17 Aug 05:27
b4db046
Compare
Choose a tag to compare

Fixed: alt="" from <img> was removed. Issue #21

Full Changelog: v4.1.0...v4.1.1

v4.1.0

01 Apr 12:35
118053b
Compare
Choose a tag to compare
  • Upgrades Eleventy Image to v3.1.0

Full Changelog: v4.0.0...v4.1.0

v4.0.0

31 Jan 06:55
0f6d777
Compare
Choose a tag to compare
  • Upgrades Eleventy Image to v3.0.0. See release notes for changes.
  • Breaking: Requires Node 14.15+ because of Eleventy Image v3.0.0

Full Changelog: v3.0.0...v4.0.0

v3.0.0

04 Jun 17:33
099627c
Compare
Choose a tag to compare
  • Class attribute from <img> tags are not moved to <picture> by default. That behaviour can be enabled through option, hoistImgClass
  • New option pictureClass to provide class names for the newly created <picture> elements.
  • Also, you can provide class name to <picture> through data-img2picture-picture-class attribute on <img> tag.

Full Changelog: v2.0.3...v3.0.0

v2.0.3

03 Jun 18:34
b90e492
Compare
Choose a tag to compare
  • fix: special character attributes in body mess up markup (for real) #16

Full Changelog: v2.0.2...v2.0.3

v2.0.2

03 Jun 14:52
06ff85c
Compare
Choose a tag to compare

What's Changed

  • fix: special character attributes in body mess up markup by @saneef in #17

Full Changelog: v2.0.1...v2.0.2

v2.0.1

17 May 04:16
08517e6
Compare
Choose a tag to compare
  • Bump Eleventy Image to v2.0.1