I have product images on website. In 'images' directory they are present as 1.jpg, 2.jpg and so on. 1, 2 are product ids from database and therefore I have put images name as product id (as it would be easier to add/update images) for a product.For SEO, I have read it is good to have filename something like product-name.jpg (in this case) etc. I want to keep filename as Id based only in images directory but in  tag I want to have filename something like src='images/product-name.jpg'. This could be achieved by .htaccess where product-name.jpg would render images/1.jpg.I want to know in this case for SEO purpose, filename being considered would be product-name.jpg or 1.jpg as actual path in fileserver is images/1.jpg?
SEO Dynamic Image filename
seo;images;google image search