February 10, 201214 yr Hi I'm new to website design, so apologies for asking a basic question. I'm want to start adding images to my gallery pages and would like to start with 'best practice' re setting up folders. I have an 'images' folder directly under the root folder and, from what I've read, it's best to have all images in one folder. I was going to place the images for each gallery within a sub folder, ie myWebsite > images > gallery1 (gallery2, gallery3 etc). Does that sound ok, or would if be better/faster loading etc if the gallery folder are directly under the root folder, ie: myWebsite > gallery1 (gallery2, gallery3 etc). Any advice that more experienced designers can give me would be much appreciated. Many thanks.
February 10, 201214 yr It depends how anal you want to get over it. Personally I'd have 'root > img > galleries > gallery_1' I think the most important thing is to structure it how you feel your mind would be able to flow the best. Edited February 10, 201214 yr by MikeChipshop
February 10, 201214 yr Provided your system cannot have duplicate image names and your not going to hit directory size limits/have performance issues* it doesn't really matter whether you use a single repository or a structured repository. I mean, your gallery system is loading the images in, people are not navigating these folders, so it really makes no odds. * Some servers have limits to the number of files that can exist in a directory, we're talking tens of thousands though. Also if you have a directory with tens of thousands of images you could find a directory read overhead, but again unless you're talking about huge volumes of images it's not going to be an issue. Edited February 10, 201214 yr by FizixRichard
February 10, 201214 yr Author Thanks for your post, FizixRichard. It's only a small site so I'm unlikely to hit any limits.
February 10, 201214 yr Author It depends how anal you want to get over it. Personally I'd have 'root > img > galleries > gallery_1' I think the most important thing is to structure it how you feel your mind would be able to flow the best. Thanks, Mike. I prefer 'root > img > galleries > gallery_1' and, as there seems to be no problem re slowing things down or whatever, I'll go with that. Makes things easier to find.
Create an account or sign in to comment