@comparaonline/cloudinary-image
v5.4.4
Published
An utility component and helpers to use Compara Cloudinary account.
Downloads
157
Maintainers
Keywords
Readme
@comparaonline/cloudinary-image
An utility component and helpers to use Compara Cloudinary account.
Installation
yarn add @comparaonline/cloudinary-image
Usage of React Component
import { CloudinaryImage } from '@comparaonline/cloudinary-image';
<CloudinaryImage name="v123/path.svg" transformation={['q_auto', 'f_auto']} />
Usage of utility function
import { baseURL } from '@comparaonline/cloudinary-image';
const transformation = ['q_auto'];
baseURL('v1565811923/assets/logos/main.svg', transformation);
// https://res.cloudinary.com/compara/image/upload/v1565811923/assets/logos/main.svg