npm.io
1.7.1 • Published 4 years ago

@spezifisch/imgproxyjs

Licence
MIT
Version
1.7.1
Deps
1
Size
50 kB
Vulns
1
Weekly
0

Build Status npm npm npm bundle size

Javascript client (nodejs/browser) for imgproxy.

import imgproxyjs from 'imgproxyjs';
const { ImgProxy } = imgproxyjs;
const instance = new ImgProxy({url: 'https://imgproxy.test.com'}, {size:{width:40, height: 40, enlarge:true, extend:false}, background: '#ffffff'});

const finalImg = instance.get("http://images.com/logo.png");