Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Releases: Halo-Lab/eleventy-shortcode-image

1.5.2 (July 29, 2021)

Choose a tag to compare

@Kapelianovych Kapelianovych released this 29 Jul 09:27

Fixed

  • Renaming images caused rewriting different variants with the last and most heavy one.
  • Remove waiting SVG optimization step.
  • Don't render <source> element if image metadata doesn't emit it.
  • Change source of public URL for <img> element in <picture>.

1.5.1 (July 28, 2021)

Choose a tag to compare

@Kapelianovych Kapelianovych released this 28 Jul 14:36

Fixed

  • Add width and height attributes to <img>, by default.
  • By default, shortcode will generate srcset for 320, 640, 960, 1280 and 1600 pixels.

1.5.0 (July 27, 2021)

Choose a tag to compare

@Kapelianovych Kapelianovych released this 27 Jul 16:26

Added

  • lazy property to ImageProperties for allowing third-party libraries lazy load images.
  • srcName and srcsetName properties to ImageProperties to be able to customize name of the src and srcset attributes respectively.
  • ImageProperties can have any valid attribute for <img> element now.

Changed

  • Set default compression level to 85%.

1.4.1 (July 23, 2021)

Choose a tag to compare

@Kapelianovych Kapelianovych released this 23 Jul 15:46

Fixed

  • Caching all parameters of image shortcode to be able react on every parameter change.
  • source path is passed to @11ty/eleventy-img now.

1.4.0 (July 23, 2021)

Choose a tag to compare

@Kapelianovych Kapelianovych released this 23 Jul 11:24

Added

  • toHTML into ImageProperties for granular controlling SVG output.

Changed

  • Rename ImageAttributes to ImageProperties.

1.3.0 (July 23, 2021)

Choose a tag to compare

@Kapelianovych Kapelianovych released this 23 Jul 11:23

Added

  • Memoizing repeated images (in-memory).
  • Automatic image downloading.
  • Ability to generate HTML for GIF.
  • Ability to insert SVG into HTML or add it as link in <img> element.

Changed

  • Handle up to 40 images in parallel.
  • By default, for most raster formats plugin generates jpeg, webp and avif images.

1.2.0 (June 3, 2021)

Choose a tag to compare

@Kapelianovych Kapelianovych released this 03 Jun 08:58

Added

  • Debug logger in EleventyShortcodeImage namespace.
  • Images that are downloaded from the Web will have names from URL.pathname property.

Removed

  • output directory is not source of truth for SVGs anymore.

Fixed

  • Ability to process remote images.

1.1.1 (May 5, 2021)

Choose a tag to compare

@Kapelianovych Kapelianovych released this 05 May 13:56

Changed

  • Shortcode writes images with the same relative paths as in source directory (save subdirectories).
  • Shortcode does not rename files.

1.1.0 (April 29, 2021)

Choose a tag to compare

@Kapelianovych Kapelianovych released this 29 Apr 10:29

Added

  • svgoOptions option for configuration of behavior of svgo package.
  • rasterOptions option for @11ty/eleventy-img package behavior optimization.

1.0.1 (April 1, 2021)

Choose a tag to compare

@Kapelianovych Kapelianovych released this 01 Apr 13:27

Fixed

  • We now provide default values for alt and title attributes if a user did not pass them.