@shelf.network/imgproxy
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

@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

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

This project is licensed under the MIT License.

Install

npm i @shelf.network/imgproxy

DownloadsWeekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

20.3 kB

Total Files

18

Last publish

Collaborators

  • ihor.diachenko