cdnvision
v0.1.8
Published
Resize, crop, and process images in the cloud, simply by changing their URLs
Downloads
12
Maintainers
Readme
CDN Vision
Resize, crop, and process images in the cloud, simply by changing their URLs.
Install
npm install cdnvision
Support us
Star this project on GitHub.
Usage
Basic example
import CDNVision from 'cdnvision';
const client = new CDNVision({
name: 'your-name',
});
const url = client.getImageURL({
path: 'https://upload.wikimedia.org/wikipedia/commons/3/36/Cirrus_sky_panorama.jpg',
width: 300,
});
/* equals http://image.cdnvision.com/your-name/https://upload.wikimedia.org/wikipedia/commons/3/36/Cirrus_sky_panorama.jpg?width=300
*/
```