1.2.0 • Published 8 months ago

imgproxy v1.2.0

Weekly downloads
904
License
MIT
Repository
github
Last release
8 months ago

imgproxy

A Node client library to generate urls for imgproxy services.

Usage

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');

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.

1.2.0

8 months ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.0

2 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.1-beta.1

5 years ago

0.1.1-beta.0

5 years ago

0.1.0

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago