Live data from Hacker News

Cloudflare Images Now Available to Everyone

blog.cloudflare.com

71–80 of 91 posts

Re: Cloudflare Images Now Available to Everyone

#71
post #66
post #58

Earlier quoted context omitted.

The 'variants' include different sizes, and: > You only pay for original images; not variants https://developers.cloudflare.com/images/faq

That's for the storage though. You'll still paying $1 per 100,000 served images, including variants. Which makes small images expensive.

Hm.. the 'Do I get charged for creating and storing variants?' FAQ certainly is, but I was actually looking at the top one 'How much does Cloudflare Images cost?' which is a bit ambiguous:

> Cloudflare Images costs $5 per month per 100,000 stored images and $1 per 100,000 delivered images. Storage must be purchased in advance in blocks of 100,000 images.

> You only pay for original images; not variants. If you have one million original images and define five variants, you would only pay $50 per month for storing your one million original images.

On my first reading I took that to be general, but then the example is about storage... I think you're probably right, I was thinking each served image (or variant) would only be charged once per payment period (because they can cache aggressively) but that'd be really cheap, depending on usage.

Re: Cloudflare Images Now Available to Everyone

#72

Ah, if only this was fully available ~ 4 months ago. I transitioned my recipe app with ~ 80,000 images from Cloudinary to a combination of Backblaze B2 + Bunny.net a few months ago. I heavily use the resizing and optimizing features. It's saved me a ton of money, but if I could have used B2 + Cloudflare with their 0 bandwidth alliance, I could have saved more, I think - haven't done the math though. In the grand sche…

Have you considered imgix? It's like Cloudinary, but with flat pricing per # of origin images. Transformations and bandwidth don't cost extra. It's nice because you don't have to manage yet another stack, just plop in a URL and you're done.

It seems like Cloudflare wants you to predefine all the "variants" (transformations) as specific templates in their GUI, whereas Cloudinary and Imgix are much more flexible and accept specific URL parameters to create those transformations.

EDIT: Actually, Cloudflare supports that too (https://developers.cloudflare.com/image-resizing/url-format), it just wasn't mentioned in this blog post.

Re: Cloudflare Images Now Available to Everyone

#73

Ah, if only this was fully available ~ 4 months ago. I transitioned my recipe app with ~ 80,000 images from Cloudinary to a combination of Backblaze B2 + Bunny.net a few months ago. I heavily use the resizing and optimizing features. It's saved me a ton of money, but if I could have used B2 + Cloudflare with their 0 bandwidth alliance, I could have saved more, I think - haven't done the math though. In the grand sche…

Have you considered imgix? It's like Cloudinary, but with flat pricing per # of origin images. Transformations and bandwidth don't cost extra. It's nice because you don't have to manage yet another stack, just plop in a URL and you're done. It seems like Cloudflare wants you to predefine all the "variants" (transformations) as specific templates in their GUI, whereas Cloudinary and Imgix are much more flexible and ac…

imgix is like 5000x more expensive lol

Re: Cloudflare Images Now Available to Everyone

#74
post #67
post #55

Earlier quoted context omitted.

IIRC regular cloudflare will still cache assets for free. This tool is specifically for people who don't want to write a pipeline to do image resizing/optimization themselves. If you're able to write your own pipeline to do sprite sheets, you probably don't need this service to begin with. Just preprocess everything yourself and serve those at $0 per gb.

Yes, that makes sense. But it is interesting that this product becomes crazy expensive as the image size gets smaller. $1 per 100,000 served images is a weird pricing model unless you're serving exclusively large images.

This is true but remember, we also have volume pricing. If you're storing tens of millions of images or delivering hundreds of millions of images, talk to us :)

Re: Cloudflare Images Now Available to Everyone

#75

Question: Is there a use case here for an org that stores original, unresized images in S3 and JIT resizes them on the fly with Cloudflare workers?

You can do this with our Image Resizing product (https://developers.cloudflare.com/image-resizing/) but once you start hitting serious volume, the egress costs charged by AWS can add up (to a multiple of what you are paying AWS for the storage itself).

Re: Cloudflare Images Now Available to Everyone

#76
I want something similar to this for favicons. As stupid as that sounds, dealing with favicons is a huge pain. There are so many variants required and every vendor seems to do their own thing.

For example, when you click the share button in Safari on an iPad, it'll download every `link rel="icon"` image you list in html even though it doesn't need them. It would be really awesome to use a worker to inspect the user agent and modify responses to return exactly what's needed for that client.

The pricing for this service won't work for favicons since the cost per response is way too high, but I honestly think it'd be worth $5 / month if I could just upload a SVG favicon for my site and click a button to "Optimize Favicons".

Re: Cloudflare Images Now Available to Everyone

#77
post #23

I’m loving it. Cloudflare is a good and reliable service provider, I expect it to expand their cloud offerings in the future like drop-in S3 replacement, application logging, etc…

You never know what might happen. Cloudflare's Birthday Week is 10 days away...

Can we all make wishes? Lol.

I would like to define a pipeline of Workers that get to act on the request / response and count the whole pipeline as a single Worker run as long as I stay within the limits for normal workers. That way I can write composable, reusable workers that perform very specific tasks (like pipes). There could even be a GUI to let me enable / disable parts of the pipeline.

I can do that right now by jamming everything into a single source file, but it would feel better (to me) as a pipeline. It would also be cool if I could stick (headless) Cloudflare apps that are glorified workers into a pipeline like that (at a specific position).

Something that I've found difficult in the Cloudflare ecosystem is understanding the order of execution for everything (access, cache, workers, apps, page rules, etc.). It would be useful to have a dedicated resource that lists that.

Also, the preview pages for every app I've looked at today give an unsafe content warning [1].

1. https://imgur.com/a/KRTdjRM

Re: Cloudflare Images Now Available to Everyone

#78

If I serve cloudflare images on my non-cloudflare hosted webpage, would the visitors still occasionally see the injected DDoS protection “checking your browser before accessing” page or would the images just fail to load then? Or is that browser checking disabled if just loading images? That’s one reason why I haven’t checked out Cloudflare Pages, my (already statically hosted) website will unlikely be DDoSed and I w…

The JavaScript Challenge pages only run on dynamic assets, and so won’t impact image assets served. Beyond that: • You can turn down the sensitivity of the challenge pages: https://support.cloudflare.com/hc/en-us/articles/200170056-U... • Since Cloudflare Pages is fully hosted on us, we can soak the DDoS and don’t have to worry about letting things through to origin infrastructure. Benefit of serving directly from th…

Great, thanks - I was unaware of such an option.

Re: Cloudflare Images Now Available to Everyone

#79
post #10

Bunny.net has an alternative: https://bunny.net/optimizer/ It's probably cheaper in some cases.

I use it, it works really well. You don't have to mess around with workers to get it running, either.

I guess the breakeven is ~500k images served each month, otherwise Cloudflare would be cheaper.

Post reply on HN