How to use the cloudinary.image function in cloudinary

To help you get started, we’ve selected a few cloudinary examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github node4good / formage / forms / widgets.js View on Github external
render: function (res) {
        if (this.value && this.value.url) {
            var thumbnail_url = cloudinary.image(
                this.value.public_id, {
                    format: 'png',
                    width: 150,
                    height: 110,
                    crop: 'fill',
                    alt: this.value.original_name,
                    title: this.value.original_name
                }
            );
            res.write(util.format('<a href="%s">%s</a>\n', this.value.url, thumbnail_url));
            res.write(util.format('<input value="false" name="%s_clear" type="checkbox">\nClear\n', this.name));
        }
        res.write(util.format('<input value="%s" name="%s" type="hidden">\n', this.name, encodeJSONHTML(this.value)));
        this._super(res);
    },
    render_attributes: function (res) {
github smooth-code / blog / content / adapters / storage / cloudinary.js View on Github external
return new Promise(function(resolve) {
      if (cloudinary.image(filename, { })) {
          resolve(true);
      } else {
          resolve(false);
      }
    });
  }
github keystonejs / keystone-classic / fields / types / cloudinaryimage / CloudinaryImageType.js View on Github external
tag: function (options) {
			return exists(this) ? cloudinary.image(this.get(field.path).public_id, options) : '';
		},
		scale: function (width, height, options) {