Hello. What is the best way to organize photo storage?
How best to save images from users (avatar, cover page, posts on the wall, etc.). How many sizes? For example, a miniature 60x60, the main profile photo 200x200, an enlarged version - 1000x1000. So? And how then to optimize it? In the script, if there are three photos stored immediately, will it take too long to occur?