ascorbic / unpic

Universal image CDN translator
https://unpic.pics/lib
280 stars 31 forks source link

Can you support cloudflare-image without custom domain? #111

Open dulee-dev opened 7 months ago

dulee-dev commented 7 months ago

cloudflare image also serve without custom domain link

url sample of mine https://imagedelivery.net/// https://imagedelivery.net/sO38Ra7xK9C5jR-qJrdsOw/c0cac568-83b9-4c72-405d-2cf4f1b8d200/w=600,h=400

or is there any easy way to use custom url transformer?

ascorbic commented 7 months ago

Certainly should be doable. It would need the domain to be added to https://github.com/ascorbic/unpic/blob/main/data/domains.json and the parsing logic updated here https://github.com/ascorbic/unpic/blob/main/src/transformers/cloudflare_images.ts