for customers. Best means balancing size and quality We used to save different versions of our images on S3 using a python script Later on, we created our own resizer. Problems: Cost a lot We had had to fix bugs Used another CDN's resizer, but we overloaded it. Poor customer experience.
and Northern California AWS regions. Wanted to simulate the traffic that would hit the HauteLook home page at 8am ~85 images per server “session” Sustained ~220 resizing requests per second (uncached)
You can specify just the width and let fastly figure it out! /event-hero.jpg?width=480 Fastly chooses 235 Fastly also accepts percentages Example: /event-hero.jpg?width=50p Put a “p” after the number.
are not high resolution. Scaling factor of 1. Many iPhones have better resolution (retina). Scaling factor of 2. iPhone 6 Plus has high resolution. Scaling factor of 3.
format called HAL Image Opto is compatible with URI template RFC 6570. Some resizer formats are not compatible! Example: ?downsize=233:350 Clients (web or app) do not construct URLs They still need some control