Caching transformed images with Cache-Control, immutable and per-format cache keys
- caching
- http
- performance
Resize, crop and convert the images in your own storage by changing the URL.
Free for 14 days on 8 workers, then $449 a month.
Change any setting. Focal makes a new image, and the URL below it changes to match.
Your images stay in your bucket or on your server. When a browser asks for a size, Focal fetches the original and makes that size. Focal caches the result at the edge. The next request for that size comes from the cache. You change the size by changing the URL.
Start free trialYou choose the number of workers. A worker is one image Focal can process at a time. Images served from cache use no worker.
You ask for most of these in the URL. The URL API lists each option with an example.
jpegpnggifwebpavif format(avif) 300x200800x0 fit-infull-fit-inadaptive-fit-in leftcenterrighttopmiddlebottom 10x20:300x400 trim:top-left:80 -300x200 quality(75) strip_icc() blur(5)sharpen(1,1,true) grayscale() rotate(90) fill(white) proportion(0.5)upscale()
Add a bucket or server as your origin. Then request any size by URL. The trial lasts 14 days.
Your first URL looks like this
https://img.focaltool.com/
Focal gives each project its own key. The part after unsafe/ is the size, then the path to the original in your storage.