NodeJS client library to generate imgproxy urls
npm install imgproxy> [!CAUTION]
> This repository is not actively maintained anymore. PRs might not be reviewed. Forking is recommended.
A Node client library to generate urls for
imgproxy services.
``ts
import Imgproxy, { Gravity } from 'imgproxy';
const imgproxy = new Imgproxy({
baseUrl: 'https://imgproxy.example.com',
key: process.env.IMGPROXY_KEY,
salt: process.env.IMGPROXY_SALT,
encode: true,
});
imgproxy
.builder()
.resize('fill', 300, 200, 0)
.gravity(Gravity.north_east)
.dpr(2)
.generateUrl('https://example.com/path/to/image.jpg');
`
1. Fork it
2. Create your feature branch (git checkout -b my-new-feature)git commit -am 'Added some feature'
3. Commit your changes ()git push origin my-new-feature`)
4. Push to the branch (
5. Create new Pull Request
This project is licensed under the MIT License.