|
|
|
|
|
by taw1516
971 days ago
|
|
Does CloudFlare have an on-demand image optimization like Vercel? I love that I can specify <Image src="original_image.jpeg width="500px" /> and Vercel just took care of it for me. I am looking for something cheaper and works on native mobile apps as well. |
|
https://developers.cloudflare.com/images/image-resizing/
https://developers.cloudflare.com/images/image-resizing/url-...
Example: src="/cdn-cgi/image/width=80,quality=75/uploads/avatar1.jpg
About /cdn-cgi/image/
It's a fixed prefix that identifies that this is a special path handled by Cloudflare’s built-in Worker.
---
Price at Cloudflare : 50,000 monthly resizing requests included with Pro, Business. $9 per additional 50,000 resizing requests.
See: https://www.cloudflare.com/plans/#add-ons
As a reference: Vercel is $5 per 1000 source images. So Cloudflare is a whopping 25 x cheaper.
Price at Vercel: https://vercel.com/docs/image-optimization/limits-and-pricin...