unpic icon indicating copy to clipboard operation
unpic copied to clipboard

Can you support cloudflare-image without custom domain?

Open dulee-dev opened this issue 2 years ago • 1 comments

cloudflare image also serve without custom domain link

url sample of mine https://imagedelivery.net/<ACCOUNT_HASH>/<IMAGE_ID>/<FLEXIBLE VALIANTS> 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?

dulee-dev avatar Jan 23 '24 15:01 dulee-dev

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

ascorbic avatar Jan 23 '24 17:01 ascorbic