• MODX.com

    967 downloads

hisrc

hisrc is an extra by dashmedia, first released on 2014-08-14.

Package Description

Output modifier that generates hisrc.js compatible markup

OUTPUT MODIFIER USAGE:

w or h is the only REQUIRED variable

SNIPPET USAGE:

img, (w or h) are the only REQUIRED variables

Usage/Installation Instructions

HISRC MODX Output Modifier

This is a snippet for use with MODX, accepts Image URL's and outputs required tags for use with hisrc.js

Requirements

This snippet requires the use of hisrc.js and phpthumbof

You will need to save hisrc.php as a new snippet inside MODX and name it hisrc for these examples to work

Usage

This snippet can be used as either a basic snippet call, or as an output modifer

Options

  • w = width in pixels **required, represents the width of the 1x image**
  • h = height in pixels **required, represents the width of the 1x image**
  • img = image url **not required if using as output modifier**
  • zc = zoom crop (1 or 0) **default: 0**
  • q0 = inital image quality (low res, initial load) **default: 20**
  • q1 = 1x image quality loaded via hisrc.js **default: 75**
  • q2 = 2x image quality loaded for retina screens **default: 30**

Output modifier

Snippet call

Issues

Feel free to log a bug over at our Github Project

Details

Developer(s)
dashmedia
Released
2014-08-14
First seen
2014-08-14
License
Unlicence
Supported databases
MySQL
Minimum MODX Requirement
2

hisrc Releases

Vendor Signature Released on
MODX.com 1.0.2-pl 2014-08-14 (4 years ago)

We've also seen 1 unverified versions of hisrc in use, but don't list those as we've been unable of confirming they are official releases from an official source.