Use hardware accelerated process that can efficiently transform high resolution images, including HEIC format. It excels in concurrent transforms and can produce multiple output sizes in single request.
In my last project managed to bring my Linux web server to a complete halt when trying to transform a dozen of high resolution HEIC images on the server side, it just didn't work.
I couldn't find a good existing solution to my problem. The existing services I found were usually offering too much, like integration with their CDNs which didn't align with privacy requirements of my project.
I needed a very simple and very performant service to do this 'one thing'.
That is why I developed a service based on Apple's CoreImage library which runs on Apple Silicon and MacOS. The benchmarks were great, to convert a single 12 megapixel HEIC image on Linux it took 5s and on Apple Silicon it was below 100ms.
I thought other people might run into the same problems as I did, that's why I made the service as an API for others to use as well.
It is my first SaaS project put into the 'wild' :)