@artsy/img
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

@artsy/img

Meta

  • TODO

Usage

import { configure } from "@artsy/img";

const services = configure({
  imgix: {
    endpoint: "https://example.imgix.net",
    token: "secret",
  },
  gemini: {
    endpoint: "https://d7hftxdivxxvm.cloudfront.net",
  },
  lambda: {
    endpoint: "https://d1j88w5k23s1nr.cloudfront.net",
    sources: [
      {
        source: "https://d32dm0rphc51dk.cloudfront.net",
        bucket: "artsy-media-assets",
      },
    ],
  },
});

services.gemini.exec(
  "resize",
  "https://d32dm0rphc51dk.cloudfront.net/MFFPXvpJSoGzggU8zujwBw/normalized.jpg",
  { width: 400, height: 400 }
);
// => https://d7hftxdivxxvm.cloudfront.net?height=400&quality=80&resize_to=fit&src=https%3A%2F%2Fd32dm0rphc51dk.cloudfront.net%2FMFFPXvpJSoGzggU8zujwBw%2Fnormalized.jpg&width=400

Dependents (0)

Package Sidebar

Install

npm i @artsy/img

Weekly Downloads

1,507

Version

1.0.3

License

MIT

Unpacked Size

24.8 kB

Total Files

27

Last publish

Collaborators

  • joeyaghion
  • artsy-engineering
  • damassi
  • anandaroop
  • mzikherman
  • dblandin