Javascript library to generate image links for AssetZen. This library only includes image link generation and is optimized for use in browers.
npm
npm install --save assetzen
Not using a Javascript Package manager? You're missing out but it's OK. Just download the minified or development compiled sources and use them like any other library.
Full API documentation is available [here][docs].
// Create a new Link Generator object
var AssetZen = new LinkGenerator("myAccountId");
// Generate a link
var link = AssetZen.link({
imageId: 'myImageId',
width: 800,
height: 600,
quality: 60
});
// Apply it to an image tag on your page.
document.getElementById('my-dynamic-image').src = link;
This library should be compatible with all modern browers. While it should also work in Internet Explorer, there is no official support for versions older than 10.
Generated using TypeDoc