4 ms·
In my fediverse server project[1], I convert all user-uploaded images to high-quality webp and store them like that. I discard the original files after that's d
by grishka 2y ago
In my fediverse server project[1], I convert all user-uploaded images to high-quality webp and store them like that. I discard the original files after that's done. I use imgproxy[2] to further resize and convert them on the fly for actual display. In general, I try my best to treat the original user-uploaded files like they're radioactive, getting rid of them as soon as possible.
I don't do videos yet, but I'm kinda terrified of the idea of putting user-uploaded files through ffmpeg if/when I'll support them.
[1] https://github.com/grishka/Smithereen https://github.com/grishka/Smithereen
[2] https://github.com/imgproxy/imgproxy https://github.com/imgproxy/imgproxy