I've built a blogging system which allows multiple short posts to be added daily, each with a photo to represent the article content.
So each photo is in JPG format and a max width of 280px
, but a variable height - Possible over 2000px
if it's a set of photos grouped together into one image.
So my concern is how many images to store in the blogs administative directory:
blog.com/images/2019 ( /sub-directory )
If using a simple <img src="images/<?php echo $year."/".$id; ?>.jpg" />
tag, to get and display the image, is there a point where it starts to slow down your pages photo load time if too many images are stored in /sub-directory
?
Would it be recommended to split down sub-directory
by month, week or even day? Having 365 folders per year seems a little extreme compared to 52, but what are yor recommendations?