wu-imgproxy

imgproxy

Usage no npm install needed!

<script type="module">
  import wuImgproxy from 'https://cdn.skypack.dev/wu-imgproxy';
</script>

README

Using npm

npm install wu-imgproxy

Require

const myImgproxy = require("../dist/imgproxy.min.js");

const proxy = new myImgproxy.imgproxyInit("https://imgproxy.example.com");

proxy.imgproxy({
  url: "https://imgproxy.example.com",
  width: 250,
  height: 50,
  quality: 90,
  extension: "webp"
})

Default

Prop Type(s) Default
url String null(Don't empty)
width Number, String 0
height Number, String 0
extension String auto
extend String ce
quality Number,String 80
enlarge Number,String 1
resizing_type String fill

related articles

imgproxy