Live data from Hacker News

Issues with Cloudflare Images

blog.klungo.no

91–100 of 152 posts

Re: Issues with Cloudflare Images

#91
Hi!

I am working on an alternative service for the optimized images and deliver them over a CDN [1], for the images it generates a series of down-scaled images and provides a helper script to get the right image. Right now all the documentation and examples are focused on NodeJS [2], but I am working on examples for Dart, Ruby and Python.

Some of the features are:

- Optimized images - Custom domain - Public and Private files over a CDN - Upload widget, API, UI, dashboard and webhook - Bulk delete and bucket manipulation - CORS configuration

I am working on a couple features for the private files and image handling (based on the feedback from the users), let me know if you want to give it a try!

[1] https://bucket.listws.com [2] https://bucket.listws.com/docs/bucket/docs/intro

Re: Issues with Cloudflare Images

#92
post #88
post #18

Earlier quoted context omitted.

I remember there was another article about image uploads and content moderation (here: https://news.ycombinator.com/item?id=28684250 ), essentially saying that if you create a open uploading service, you WILL start getting lots of spammy images / abuse. CF Images always seems like a LOT more $$ than other image hosting tools out there. What other service did you end up going with?

How does imgur stay alive, out of curiosity.

Ad and analytics money, https://www.thestockdork.com/how-does-imgur-make-money/

Re: Issues with Cloudflare Images

#93
The Argo (optimized routing to the origin) pricing makes no sense to me either. Cloudflare charge for bandwidth when you enable Argo, but on ALL requests, not just those that hit your origin. There's actually zero change in routing for the cached requests - the client still hits the nearest CF datacenter, but now you're being charged for bandwidth on every cache hit when you used to pay nothing.

I like Cloudflare but some of the pricing decisions on the premium features definitely leave me scratching my head.

Re: Issues with Cloudflare Images

#94

Earlier quoted context omitted.

Why do you want to import them – why not just fetch them from origin based on demand?

I can't stand Cloudflare, the only cause of downtime we've in the last 5 years...we've switched to Microsoft Front door

Cloudflare is pretty great in a lot of ways. They have a lot of promising products, and I have never had problems with their reliability (and I've seen it handle billions of requests).

Re: Issues with Cloudflare Images

#95

I thought Cloudflare was going to win the image hosting/serving/resizing game based on their original blog post, but that doesn't seem to be the case. I kept getting frustrated with the complexity and changing costs of solutions out there, so about a year ago I launched https://www.simplefileupload.com . It's a super easy, flat rate cost solution to quickly allow users to upload images and files. It provides a custom…

Isn't it a bit too easy to exploit this? Like by maliciously uploading tons of data to the account of a site using this service in order to exceed their limit and hence break their file upload process.

Re: Issues with Cloudflare Images

#96

Cloudflare Pages has a show stoping bug at the moment. Link a repo from GitHub then change the name of your GitHub repo and the pages breaks but won't let you relink your Github repo anywhere. I opened a ticket with support. I have gotten no where in two months (Opened on October 7th 2021). We ended up switching to Netlify that has a more mature product. In case someone from Cloudflare cares to investigate this is re…

The Gitlab integration for Pages is also pretty immature. It doesn't appear to currently work with Groups/Subgroups. I've been back and forth with people on their Discord for maybe a week now trying to just get it setup for a test.

Re: Issues with Cloudflare Images

#97

I thought Cloudflare was going to win the image hosting/serving/resizing game based on their original blog post, but that doesn't seem to be the case. I kept getting frustrated with the complexity and changing costs of solutions out there, so about a year ago I launched https://www.simplefileupload.com . It's a super easy, flat rate cost solution to quickly allow users to upload images and files. It provides a custom…

What a fantastic service! I really like how focused it is. Just file upload. Database? No. Confusing terms? No. File upload? yes.

Re: Issues with Cloudflare Images

#98
post #47

Earlier quoted context omitted.

I worked with sites that had performance issues because of attacks against dynamic image scaling in Cloudflare (scaling probably done with workers). Services like Cloudflare does not in general protect against service design issues. I try to explain that to people all the time. I also worked with another provider where a monthly bill got 5 times higher one month because images were requested at many different large s…

Yeah, I've come across sites that allow arbitrary resizing via dimension numbers in the URL. Seems like it would be easy to CPU ddos by submitting random numbers in those fields.

And it's fairly easy to "snap" to the nearest available size variant. That way one can add cached variants after-the-fact.

Re: Issues with Cloudflare Images

#99
When I first saw this product announced, I immediately wanted to replace my manual solution with it. I’ve been putting it off because other work had to be done, but now that I read this, I think I’ll stick with my current workflow for now.

What I’ve been doing is first resize an image to multiple specific sizes using Vips (https://www.libvips.org/API/current/using-cli.html)

    for size in 8120 5260 3840 2560 1920 1200 992 768 576 320
        vipsthumbnail $img --vips-progress --linear \
            --size=$size --vips-concurrency=(sysctl -n hw.ncpu) -o $size'_%s.png' \
            --eprofile='/System/Library/ColorSync/Profiles/sRGB Profile.icc' \
            --delete --rotate
    end
Optimize them using ImageOptim (https://imageoptim.com/mac)

    imageoptim (dirname $img)
Then use some kind of template to add a srcset on my websites.

This one is using Plim (https://plim.readthedocs.io/en/latest/syntax.html#tag-attrib...) which I use on Lunar’s website (https://lunar.fyi)

    img alt="background" srcset=${
        ','.join(f'/static/img/stars/{width}_stars.png {width}w' 
        for width in [8120, 5260, 3840, 2560, 1920, 1280, 1024, 768, 640, 320])
    }
This one is using Hugo which I use on https://alinpanaitiu.com

    {{ $paths := (
        apply 
        [8120, 5260, 3840, 2560, 1920, 1200, 992, 768, 576, 320, 64] 
        "printf" "/images/%d_stars.png %dw" ) }}
    {{ $srcset := delimit $paths "," }}
    
Having a CDN in front which could do this for me is what I’ve been dreaming of, so I can simply have an images folder with the unaltered images instead of all those variants. But what I want isn’t always what I need.

Maybe what I need is something like a reverse proxy that can generate the variant on the fly when it is requested by the browser through the srcset.

Post reply on HN