### Initialize and Use Imgproxy Client Source: https://github.com/unitedwardrobe/imgproxy-node/blob/main/README.md Demonstrates how to initialize the Imgproxy client with base URL, key, salt, and encoding options. It then shows how to use the builder pattern to configure image transformations such as resize, gravity, and DPR, and finally generate the URL for a given image. ```typescript 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'); ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.