Подробнее как работает этот пример можно прочитать тут. https://medium.com/@NikolayMatrosov/yandex-cloud-on-the-fly-thumbnails-46963af33e02
nikolaymatrosov/yc-on-the-fly-thumbnailer-csharp
Rewritten in C# Yandex Cloud Serverless Function to resize images from Object storage(S3) on the fly.
C#