Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/add-imagor-provider.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"unpic": minor
---

feat: add imagor provider
4 changes: 4 additions & 0 deletions demo/src/examples.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@
"IPX",
"https://deploy-preview-125--unpic-playground.netlify.app/_ipx/w_450/https://unpic.pics/tree.png"
],
"imagor": [
"Imagor",
"https://imagor.unpic.pics/unsafe/450x0/https://unpic.pics/tree.png"
],
"netlify": [
"Netlify",
"https://unpic-playground.netlify.app/.netlify/images?url=/cappadocia.jpg"
Expand Down
1 change: 1 addition & 0 deletions deno.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"./providers/directus": "./src/providers/directus.ts",
"./providers/imageengine": "./src/providers/imageengine.ts",
"./providers/imagekit": "./src/providers/keycdn.ts",
"./providers/imagor": "./src/providers/imagor.ts",
"./providers/imgix": "./src/providers/imgix.ts",
"./providers/keycdn": "./src/providers/keycdn.ts",
"./providers/kontent.ai": "./src/providers/kontent.ai.ts",
Expand Down
3 changes: 2 additions & 1 deletion e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ Deno.test("E2E tests", async (t) => {
const [name, url] = example;
// ImageEngine is really flaky, so ignore it, and the supabase example is
// broken
const ignore = ["imageengine", "supabase"].includes(cdn);
const ignore = ["imageengine", "supabase", "imagor"].includes(cdn);
const ignoreAspectRatio = [
"imageengine",
"supabase",
"imagor",
"vercel",
"nextjs",
]
Expand Down
1 change: 1 addition & 0 deletions src/async.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const asyncProviderMap: AsyncProviderMap = {
hygraph: () => import("./providers/hygraph.ts"),
imageengine: () => import("./providers/imageengine.ts"),
imagekit: () => import("./providers/imagekit.ts"),
imagor: () => import("./providers/imagor.ts"),
imgix: () => import("./providers/imgix.ts"),
ipx: () => import("./providers/ipx.ts"),
keycdn: () => import("./providers/keycdn.ts"),
Expand Down
2 changes: 2 additions & 0 deletions src/extract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { extract as directus } from "./providers/directus.ts";
import { extract as hygraph } from "./providers/hygraph.ts";
import { extract as imageengine } from "./providers/imageengine.ts";
import { extract as imagekit } from "./providers/imagekit.ts";
import { extract as imagor } from "./providers/imagor.ts";
import { extract as imgix } from "./providers/imgix.ts";
import { extract as ipx } from "./providers/ipx.ts";
import { extract as keycdn } from "./providers/keycdn.ts";
Expand Down Expand Up @@ -50,6 +51,7 @@ export const parsers: URLExtractorMap = {
hygraph,
imageengine,
imagekit,
imagor,
imgix,
ipx,
keycdn,
Expand Down
Loading
Loading