2.2.2 • Published 3 years ago

cloudinary-url-resolver v2.2.2

Weekly downloads
488
License
MIT
Repository
github
Last release
3 years ago

Cloudinary url resolver

Latest Version Software License Build Status Coverage Status

Installation

bower install --save cloudinary-url-resolver

Usage

resolver.settings.cloud_name = 'awesomecloud';
resolver.settings.secure = false;

console.log(resolver('images/1/1312319103', {
  height: 100,
  width: 100,
  crop: 'fill',
  flags: ['keep_iptc', 'attachment']
}));

Will return http://res.cloudinary.com/awesomecloud/image/upload/h_100,w_100,c_fill,fl_keep_iptc.attachment/images/1/1312319103

Available settings

Cloudinary Transformations Reference (go there to see descriptions and possible values)

resolver.settings.root = 'http://res.cloudinary.com/';
resolver.settings.secure_root = 'https://res.cloudinary.com/';
resolver.settings.cloud_name = null;
resolver.settings.secure = true;

Available transformations

angle
background
border
crop
default_image
density
effect
fetch_format
flags <-- can also be an array of multiple values
gravity
height
opacity
overlay
page
quality
radius
transformation
underlay
width
x
y

Testing

$ gulp test

Contributing

Please see CONTRIBUTING for details.

License

The MIT License (MIT). Please see License File for more information.

2.2.2

3 years ago

2.2.1

3 years ago

2.1.2

5 years ago

2.1.1

5 years ago

2.0.1

8 years ago

1.0.0

8 years ago