

I recently saw a self-hosted imgix/cloudinary alternative. I thought I starred it on gh, but apparently not and I can’t remember the name.
Edit
I think this was it:
https://github.com/imgproxy/imgproxy
But also, on a second read of your post, I now realize what you are looking for is right here:
https://squoosh.app/
It’s open source and it’s entirely client-side. It allows you to customize the settings to compress your image to the file size and format you need and maintain as much as the quality as possible. I can’t think of a simpler solution that works across all your devices.
You better filesystem check yourself before you filesystem wreck yourself