1.0.3 • Published 5 years ago
js-imgproxy v1.0.3
js-imgproxy
const imgproxy = new Init("https://imgproxy.example.com"); // or const imgproxy = new CryptographicInit({ salt: process.env.IMGPROXY_SALT, key: process.env.IMGPROXY_KEY, baseUrl: "https://imgproxy.example.com" })
const url = imgproxy.getNewUrl({ url: "https://imgproxy.example.com/01.jpg", width: 250, height: 50, quality: 90, extension: "webp" })