2017 © Pedro Peláez
 

silverstripe-module silverstripe-responsive-images-srcset

Addon for responsive images module to use the img/srcset standard

image

stnvh/silverstripe-responsive-images-srcset

Addon for responsive images module to use the img/srcset standard

  • Wednesday, December 16, 2015
  • by stnvh
  • Repository
  • 1 Watchers
  • 1 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 2 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Silverstripe Responsive Images - srcset extension

Latest Stable Version License, (*1)

Addon for the responsive images module to use the img/srcset standard, (*2)

By Stan Hutcheon - Bigfork Ltd, (*3)

Installation:

Composer:

composer require "stnvh/silverstripe-responsive-images-srcset" "0.x"

Download:

Clone this repo into the root of your silverstripe installation folder., (*4)

Usage:

See the responsive images module usage for basic config., (*5)

The option to automatically generate retina images has been added for ease. It can be enabled via yml:, (*6)

ResponsiveImageExtension:
  sets:
    GallerySet:
      method: CroppedFocusedImage
      sizes:
        - {query: "(min-width: 640px)", size: 820x640}
        - {query: "(min-width: 940px)", size: 1128x768}
      default_size: 960x480
      retina: true

Notes:

  • A polyfill is required for IE 11 & below.
  • This has only been tested with min-width queries.

After installing via composer, you must /dev/build and flush, (*7)

The Versions

16/12 2015

dev-master

9999999-dev https://github.com/stnvh/silverstripe-responsive-images-srcset

Addon for responsive images module to use the img/srcset standard

  Sources   Download

BSD-3-Clause

The Requires

 

cms responsive image silverstripe srcset

16/12 2015

0.1.0

0.1.0.0 https://github.com/stnvh/silverstripe-responsive-images-srcset

Addon for responsive images module to use the img/srcset standard

  Sources   Download

BSD-3-Clause

The Requires

 

cms responsive image silverstripe srcset