Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: add support for Cloudflare Images#79

Merged
ascorbic merged 2 commits into
ascorbic:mainfrom
guillaumelachaud:gl/cloudflare_images
Aug 1, 2023
Merged

feat: add support for Cloudflare Images#79
ascorbic merged 2 commits into
ascorbic:mainfrom
guillaumelachaud:gl/cloudflare_images

Conversation

@guillaumelachaud

@guillaumelachaud guillaumelachaud commented Aug 1, 2023

Copy link
Copy Markdown
Contributor

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:

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.

CleanShot 2023-07-31 at 23 03 16@2x

Resolves #12

@ascorbic

ascorbic commented Aug 1, 2023

Copy link
Copy Markdown
Owner

Awesome! Thank you @guillaumelachaud . This is one there's been quite a few requests for.

@ascorbic ascorbic changed the title Add support for Cloudflare Images feat: add support for Cloudflare Images Aug 1, 2023
@ascorbic ascorbic merged commit 50f5d59 into ascorbic:main Aug 1, 2023
@mixie-bot mixie-bot Bot mentioned this pull request Aug 1, 2023
@mixie-bot mixie-bot Bot mentioned this pull request Dec 7, 2024
@mixie-bot mixie-bot Bot mentioned this pull request Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Cloudflare Images

2 participants