This module helps you build image src for Simple Image Cloud easily. It allows you to serve images from Simple Image Cloud CDN with transformations and variations easily.
yarn add @simpleimg/src-builder
or
npm install @simpleimg/src-builder
You can find the documentation for the Src Builder here.
import srcBuilder from '@simpleimg/src-builder';
const src = srcBuilder({
account: '[YOUR_ACCOUNT_ID]',
src: 'image-1.jpg',
width: 500
});
console.log(src);
// https://[YOUR_ACCOUNT_ID].simpleimg.io/image-1.jpg?w=500
We want to hear your issue reports and feature requests at support@simpleimagecloud.com