News for hackers. Stuff that matters.
Re:How Discord Resizes 150M Images Every Day with Go and C++ by codedokode on Tuesday November 14, 2017 @04:43PM (#15699459)
As I understand they needed to download images from any external servers using an URL. I am not sure if that is possible even with CORS.

Also they don't save preview images and generate them when needed as I understood. So what you are suggesting requires a lot of disk space to keep thumbnails that might be never needed later.

And if you don't have millions of uploads per day then it makes no sense trying to save some seconds of CPU time by unnecessarily complicating the system. In most languages there already are libraries for resizing images.

Re:How Discord Resizes 150M Images Every Day with Go and C++ by megy on Tuesday November 14, 2017 @06:04PM (#15700092)
I have no idea how what you are saying related to compressing images before they are sent?