For example, I may have 300 products, every product has one and only one image. the image is with the product_code as the image name.
So when I display certain products, I know which images I need to use right away.
I only allow jpg as products images before. No problem so far.
Now if I want allow jpg, gif een png as products images.
Then I run into a problem, say in my master list of the products, I need to display all 300 products.
Now due to I allow jpg, gif or png. Instead directly use the images (such as code11.jpg like before) now, I have to search to whether jpg, gif or png is used, then I can display the image. Additional php process here. If the products are more than hundreds, add a lot of php process.
My questions are
1) search the server for certain file, is this php process heavy or it is nothing even we have to search the files with the foders hundreds times. I should not worry about?
2) what is the general practice, such as for the images of the porducts, we limit it to gif, or we allow free select from gif, jpg, png etc.
Thanks!