I want to make bigger application that stores multiple avatars for each registered user (different sizes of the same image).
Should I store original images and resized avatars in the same directory (small_avatar and big_avatar stored in the same directory) or should I keep different sized images in matching directories (small_avatar goes to small_avatar directory, big_avatar goes to big_avatar directory etc.)

有帮助吗?

解决方案

I do not there will be any difference but if you try to check some of the world`s largest websites you will see that they are keeping all in the same directory just with different prefixes. My guess is that saves some load time but I seriously doubt it is significant for the user or server.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top