get https://developer.interactgo.com/api/asset/
When an image is uploaded to the interact media manager, Interact automatically saves 8 versions of the image, at different scales to ensure images files are sized appropriately to the place they are being used.
As such, when requesting an asset from the API, one of the parameters is the size of the image to return. The available options are 1 to 8, which return the image sized as shown to the right:
Size parameter | Image width | Image height |
---|---|---|
1 | 16 | 16 |
2 | 32 | 32 |
3 | 40 | 40 |
4 | 75 | 75 |
5 | 256 | 256 |
6 | original width | original height |
7 | 1154 | 1154 |
8 | 512 | 512 |
$.get('http://yoursite.com/test/' + id, function(data) {
console.log(data);
});