resrc.js

A JavaScript library for pixel perfect images on demand.


Keywords
resrc, images, responsive, responsive images, image CDN
License
GPL-2.0
Install
bower install resrc.js

Documentation

ReSRC Logo

resrc.js - Responsive Image Library

resrc.js is a small, mobile friendly responsive image JavaScript library that produces pixel perfect images on demand. The library requires your images to be served via ReSRC - The Responsive Image Service. Link your images to our simple service and let us take care of everything!

Register your domain for a FREE TRIAL.

Features

  • HiDPI (retina) Support
  • CSS background Support
  • Plugin support for features such as: art direction, sharding etc
  • Pinch and zoom Image support (Currently iOS only)
  • No multiple requests for the same image
  • Remote image fallback
  • Pixel rounding support
  • Placeholder image support
  • Supports the popular ‘Mobile First’ approach
  • Optional http image requests for image down sizing
  • Does not use device detection via user-agents or cookies

Browser Support

resrc.js has extensive browser support on Windows/Mac/Linux/iOS/Android.
We have made sure it works on Internet Explorer 6 and above.

Browser Support

Demos

Simple | Custom Options | Preview approach (aka: Mobile First) | Art Direction

Examples

Simple | CSS Background | Preview approach (aka: Mobile First)

Plugins

resrc.js supports plugins so you can add any additional functionality you may require. Learn More

Latest Release: 0.9.5

For a full list of releases and changes please see the CHANGELOG.

Documentation

Please see DOCUMENTATION.

Running Tests Build Status

To run the tests, simply run npm install if you haven't already, followed by npm test.

Building a minified release

The repository does not contain a minified resrc.min.js file - this is only generated for RELEASES. To build your own minified copy for use in development simply run npm install if you haven't already, followed by grunt build. This will generate a resrc.min.js file in the dist subdirectory.

Team

resrc.js is actively developed by Dom. Ed works his magic server side, building the core engine.

Dom Fee Ed Thurgood
Dom Fee Ed Thurgood

Contributing

Please see the CONTRIBUTING file for guidelines.

Contact

Please get in touch via: EMAIL.

License

Copyright (C) 2014-2015 by ReSRC LTD Licensed under the GNU GENERAL PUBLIC LICENSE, Version 2, June 1991

Please see LICENSE.