Skip to content

Commit 5e18571

Browse files
committed
add node image conversion demo.
1 parent 73356b2 commit 5e18571

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
require('dotenv').config()
2+
const cloudinary = require('cloudinary').v2;
3+
4+
cloudinary.config({
5+
cloud_name: process.env.CLOUDINARY_CLOUD_NAME,
6+
})
7+
8+
const image = cloudinary.url("examples/shoes_kto0zb", {
9+
fetch_format: "webp",
10+
})
11+
12+
console.log(image)

0 commit comments

Comments
 (0)