Resizing images and caching results?

#1

Hi,

To improve performance I would like to resize images on demand regarding request GET parameters such as here:
https://docs.fastly.com/guides/imageopto-examples/resizing-images.

Could workers enable me to do that and cache the result?

Thanks,

0 Likes

#2

I was just looking into this and found: https://developers.cloudflare.com/images/
Just requested Cloudflare to enable it for my zone. :slight_smile:

1 Like

#3

Just got a response back:

The Beta for our new image resizing feature is only open to Enterprise customer.
It will be made available to all customers on our Business and Enterprise plan later in the Q2 of this year.

For me I guess that’s still some more waiting todo then… :frowning: But for enterprise customers, go check it out. :slight_smile:

0 Likes

#4

You could use:

  • image resizing service, only available to Enterprise, for now.
  • WebAssembly in a Cloudflare Worker
  • Use an external service like Cloudinary, kraken.io, imgix and use Cloudflare worker to cache the assets.
1 Like

#5

There’s also ShortPixel which cost much less than the previous alternatives. They do resizing, compression, lossless compression, color conversion and has a very simple REST API that works excellent with Workers (we use it in our site-builder).

1 Like