UNPKG

@cloudinary/url-gen

Version:

Cloudinary URL-Gen SDK ========================= [![Build Status](https://api.travis-ci.com/cloudinary/js-url-gen.svg?branch=master)](https://app.travis-ci.com/github/cloudinary/js-url-gen) ## About The Cloudinary URL-Gen SDK allows you to quickly and eas

43 lines (40 loc) 1.17 kB
'use strict'; /** * @description Defines the available modes to use with the improve effect. * @namespace ImproveMode * @memberOf Qualifiers * @see To be used with an {@link Actions.Adjust.ImproveAction|Adjust Improve} * @example * import {Cloudinary} from "@cloudinary/url-gen/instance/Cloudinary"; * import {outdoor} from "@cloudinary/url-gen/qualifiers/improveMode"; * import {improve} from "@cloudinary/url-gen/actions/adjust"; * * const yourCldInstance = new Cloudinary({cloud: {cloudName: 'demo'}}); * const image = yourCldInstance.image('woman'); * image.adjust(improve().mode(outdoor())); */ /** * @summary qualifier * @memberOf Qualifiers.ImproveMode * @description Use this mode to get better results on outdoor images. * @return string */ function outdoor() { return 'outdoor'; } /** * @summary qualifier * @memberOf Qualifiers.ImproveMode * @description Use this mode to get better results on images with indoor lighting and shadows. * @return string */ function indoor() { return 'indoor'; } const ImproveMode = { indoor, outdoor }; exports.ImproveMode = ImproveMode; exports.indoor = indoor; exports.outdoor = outdoor;