Closed guillaumelachaud closed 1 year ago
This PR adds support for Cloudflare Images (not to be confused with Cloudflare Image Resizing
CF Images offers Flexible Variants (doc) as a way to dynamically resize and transform images. The base URL is:
Flexible Variants
https://imagedelivery.net/<ACCOUNT_HASH>/<IMAGE_ID>/w=400,sharpen=3
CF Images supports serving images over a custom domain, with URL:
https://example.com/cdn-cgi/imagedelivery/<ACCOUNT_HASH>/<IMAGE_ID>/<VARIANT_NAME>
This PR implements URL parsing for the custom domain pattern as I would expect this to be the most commonly used.
Resolves #12
Awesome! Thank you @guillaumelachaud . This is one there's been quite a few requests for.
This PR adds support for Cloudflare Images (not to be confused with Cloudflare Image Resizing
CF Images offers
Flexible Variants
(doc) as a way to dynamically resize and transform images. The base URL is:CF Images supports serving images over a custom domain, with URL:
This PR implements URL parsing for the custom domain pattern as I would expect this to be the most commonly used.
Resolves #12