42 votes

Slimsy

Effortless Responsive Images with LazySizes and Umbraco

Slimsy v3.0.0+ requires Umbraco v8.0.1+

Slimsy v2.0.0+ requires Umbraco v7.6.0+


LazySizes.js used in conjunction with ImageProcessor.Web and the built-in Umbraco Image Cropper will make your responsive website's images both adaptive and "retina" quality (if supported by the client browser).

Slimsy includes lazysizes.min.js and picturefill.min.js and some helper methods.

Below is an example of how easy it is to use image srcset with a fallback image using v3 in Umbraco v8.

<div class="employee-grid">
    @foreach (ContentModels.Person person in Model.Children)
    {
        <div class="employee-grid__item">
            <div class="employee-grid__item__image">
                <img src="@Url.GetCropUrl(person.Photo, 323, 300, quality:30, furtherOptions:"&format=auto")"
                     data-srcset="@Url.GetSrcSetUrls(person.Photo, 323, 300)"
                     data-src="@Url.GetCropUrl(person.Photo, 323, 300)"
                     sizes="auto" class="lazyload" />
            </div>
        </div>
    }
</div>

Please visit our GitHub for all the information you need to configure and integrate Slimsy into your website projects.

Screenshots

Archived files

Documentation

Source code

Package owner

Jeavon Leopold

Jeavon Leopold

Jeavon has 13040 karma points

Package Compatibility

This package is compatible with the following versions as reported by community members who have downloaded this package:
Untested or doesn't work on Umbraco Cloud
8.0.x (100%)
7.14.x (untested)
7.13.x (untested)
7.12.x (100%)
7.11.x (100%)
7.10.x (100%)
7.9.x (100%)
7.8.x (100%)
7.7.x (100%)
7.6.x (100%)
7.5.x (untested)
7.4.x (100%)
7.3.x (73%)
7.2.x (100%)
7.1.x (100%)
7.0.x (untested)
6.1.x (untested)
6.0.x (untested)

You must login before you can report on package compatibility.

Package Information

  • Package owner: Jeavon Leopold
  • Contributors: Marc Stöcker , Will Phillips
  • Created: 22/05/2014
  • Current version 3.0.0-beta1
  • .net Version 4.5,4.7.2
  • License MIT
  • Downloads: 8672