Live data from Hacker News

Cloudflare Images Now Available to Everyone

blog.cloudflare.com

61–70 of 91 posts

Re: Cloudflare Images Now Available to Everyone

#61

10MB max per image seems extremely low for 2021.

Not really. The 90th percentile of desktop web pages load less than half that much image data across all images on the page: https://almanac.httparchive.org/en/2020/page-weight#image-by... A 10MB limit per image seems like it will cover everything but outliers.

Yeah but that's the limit for the source image, which would you would want to be the best resolution you might ever want to display.

Re: Cloudflare Images Now Available to Everyone

#62

Earlier quoted context omitted.

This isn't "store my phone camera roll", it's "deliver images on the Internet". If you look at https://httparchive.org/reports/state-of-images?lens=top1m&s... for 2021 you'll see images are way smaller than 10MB on the web.

but this is an image resizing service, right? shouldn't you be uploading the highest quality original source? I would've thought the workflow for these would be to upload a high quality source, and then the service creates lower quality/optimised variants. I guess you have a limit as it is priced on total images stored and not storage/cpu used...

In a previous life I built a photo sharing community and it was quite common with >10MiB uploads, the limit I set was 25. It’s just as you say, you want the highest possible quality (within reason) for rescale purposes (and 2x monitors like the iMac)

Re: Cloudflare Images Now Available to Everyone

#63
post #54

Images up to 10MB in size. Aren’t most photos taken by recent phones > 10MB? I know my DSLR pictures certainly are. Asking out of curiosity. I am not the target audience for this product.

Sure the raw images are large, but websites rarely display images in their original format. Generally for display on websites images are at least compressed if not scaled down significantly. Here is an example I just pulled off the front page of the NYT website. I'm sure it was originally a 10+MB image taken on a iphone or DSLR but it was compressed/scaled down to a 510kb webp image for display on the web. https://st…

The point here though is there’s a file size limit for images you’re uploading. With the 10MB limit you can’t upload your source image for conversion to the example image you linked. You need to do an initial conversion first, which means you’ll introduce more artifacts.

Re: Cloudflare Images Now Available to Everyone

#65

Images up to 10MB in size. Aren’t most photos taken by recent phones > 10MB? I know my DSLR pictures certainly are. Asking out of curiosity. I am not the target audience for this product.

This isn't "store my phone camera roll", it's "deliver images on the Internet". If you look at https://httparchive.org/reports/state-of-images?lens=top1m&s... for 2021 you'll see images are way smaller than 10MB on the web.

We're evaluating this product to replace our self-hosted "resize and deliver images on the Internet" solution and we definitely do have source images over 10mb. I'm not worried about the migration, but this means that going forward we might need our app (or worse our users) have to resize images down before uploading them to the image resizing service. That's a bummer.

EDIT: I just checked, 2.5% of source images are over 10mb.

An easy solution might be to have it accept an upload of a larger file, but automatically scale it down to fit under 10mb and then only store that as the new original.

Re: Cloudflare Images Now Available to Everyone

#66
post #58
post #22

Earlier quoted context omitted.

Typo on the last one, should be: 50KB = 5GB = $0.20 per GB Which would make you want to break out the old school spriting tools :) I guess don't serve thumbnail galleries from CF.

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.

Re: Cloudflare Images Now Available to Everyone

#67
post #55
post #22

Earlier quoted context omitted.

Typo on the last one, should be: 50KB = 5GB = $0.20 per GB Which would make you want to break out the old school spriting tools :) I guess don't serve thumbnail galleries from CF.

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.

Re: Cloudflare Images Now Available to Everyone

#68
post #9

Earlier quoted context omitted.

This is already supported. You create a worker that understands your URL scheme, and requests images via Cloudflare with the desired size/parameters: https://developers.cloudflare.com/image-resizing/resizing-wi... Or, you can just use Cloudflare's built-in URL scheme for resizing arbitrary URLs: https://developers.cloudflare.com/image-resizing/url-format

Indeed. I only read the blog post, where this info is missing. Thank you.

If I understand correctly, then Cloudflare's paradigm is: We have a bunch of polished, simple standard services and if you want to do something slightly different and/or do something on the network you can use Workers.

I think it's pretty smart and empowering as it strikes a nice balance between great, simple DX and high flexibility.

Re: Cloudflare Images Now Available to Everyone

#69
post #58
post #22

Earlier quoted context omitted.

Typo on the last one, should be: 50KB = 5GB = $0.20 per GB Which would make you want to break out the old school spriting tools :) I guess don't serve thumbnail galleries from CF.

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

It's per "delivered image". I think that it will count each variant as one delivery.

Re: Cloudflare Images Now Available to Everyone

#70

Images up to 10MB in size. Aren’t most photos taken by recent phones > 10MB? I know my DSLR pictures certainly are. Asking out of curiosity. I am not the target audience for this product.

This is an initial launch, so the limit is maximally conservative to avoid promising too much before seeing what customers do with it.

The Cloudflare Image Resizing service this product is based on has been increasing its max size, and it supports 100MB images.

Post reply on HN