How it started
One day, I noticed that a thumbnail image on a screen I was working on looked weirdly stretched.
"Oh, I know this one. Just switch CSS object-fit from cover to contain and done."
Feeling pretty confident, I fixed the code. But the image was still stretched. When I opened the image URL directly from the browser's dev tools, the image coming back from Amazon S3 was already stretched.
"Are you kidding me?"
But I had just joined the project, and I don't really know infrastructure. I had no idea where the image-generation code lived, so I asked a coworker.
"Sorry to bother you — this thumbnail seems to be resized somewhere on the AWS side. Do you know where that happens?"
My coworker said:
"Oh, that's done by a Lambda function in a separate infrastructure repository. But editing that repository directly won't help.…