stnvh/silverstripe-responsive-images-srcset 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

stnvh/silverstripe-responsive-images-srcset

Composer 安装命令:

composer require stnvh/silverstripe-responsive-images-srcset

包简介

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

README 文档

README

Latest Stable Version License

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

By Stan Hutcheon - Bigfork Ltd

Installation:

Composer:

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

Download:

Clone this repo into the root of your silverstripe installation folder.

Usage:

See the responsive images module usage for basic config.

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

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

统计信息

  • 总下载量: 22
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-12-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固