1.0.3 • Published 1 year ago
@artsy/img v1.0.3
@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
1.0.3
1 year ago
1.0.2
1 year ago
1.0.2--canary.12.82.0
1 year ago
1.0.1
1 year ago
1.0.0
1 year ago
0.1.2
1 year ago
0.1.1
1 year ago
0.1.0
1 year ago
0.0.1
1 year ago
0.0.1--canary.5.31.0
1 year ago
0.0.1--canary.2.9.0
1 year ago