From 5e1857116c783de1d15f271908273b38861b6fe5 Mon Sep 17 00:00:00 2001 From: Brad Garropy Date: Tue, 26 Nov 2024 11:12:23 -0600 Subject: [PATCH] add node image conversion demo. --- .../node-transformations-effects/image-conversion.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 examples/node-transformations-effects/image-conversion.js diff --git a/examples/node-transformations-effects/image-conversion.js b/examples/node-transformations-effects/image-conversion.js new file mode 100644 index 0000000..74f0dde --- /dev/null +++ b/examples/node-transformations-effects/image-conversion.js @@ -0,0 +1,12 @@ +require('dotenv').config() +const cloudinary = require('cloudinary').v2; + +cloudinary.config({ + cloud_name: process.env.CLOUDINARY_CLOUD_NAME, +}) + +const image = cloudinary.url("examples/shoes_kto0zb", { + fetch_format: "webp", +}) + +console.log(image)