@shelf.network/imgproxy
v1.0.0
Published
NodeJS client library to generate imgproxy urls
Downloads
2
Maintainers
Readme
@shelf.network/imgproxy
Fork of imgproxy optimized for front-end bundle size. Signature of links is removed.
Usage
import Imgproxy, { Gravity } from 'imgproxy';
const imgproxy = new Imgproxy({
baseUrl: 'https://imgproxy.example.com'
});
imgproxy
.builder()
.resize('fill', 300, 200, 0)
.gravity(Gravity.north_east)
.dpr(2)
.generateUrl('https://example.com/path/to/image.jpg');
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
License
This project is licensed under the MIT License.