Hacker News new | ask | show | jobs
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.
2 comments

Yeah

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...

that is a lot cheaper than Vercel in term of store image but egress seems expensive since they charge per cache image served as well. Do you know if Cloudinary is a better option?
Tbh. I'm mostly following Cloudflare + azure.

I checked quickly and cloudinary works with credits. Cloudflare mentions 1$ / 100 k. Images served, which seems pretty cheap to me.

The pricing I mentioned was for image manipulation, eg. Resizing ( not storage), which was what was asked.

I doubt they are cheaper though.

They have an image cdn that does resizing and such, but the per-request fees are rather high.
What do you mean? Cloudflare is 25 x cheaper than Vercel

Vercel : 5$ / 1000 requests

Cloudflare : 9$ / 50.000 requests