Magento – Magento 1 – programmatically add SEO to product image name

magento-1productproduct-images

i have uploaded image in the admin to a product. Now I want the product image to be proper SEO name, basically like productname-sometags.png

How can I do this? I have 1000 products on my site, it is not possible to change names of all one by one.

Please help me, is there anyway by which it can be done programmatically.

Best Answer

Images:-

Uploading images is extremely straight forward. Browse to find the file you want then select upload. Once you have done this select which image you want as your Base Image, Small Image and Thumbnail. You can also select sort order if you have multiple images.

Image Name:- Search engines develop an understanding of how product images are related due to it's file name, alt tag and the context in which it is placed. It is good practice to name your file after the product, as this assists search engines understanding what is in the image.

Label:-

This is the only other thing you have to consider in Magento Images for SEO. This Label also applies as it’s Alt Tag. The importance of Alt Tags is reducing with time, but it is still best practice to name the Alt Tag (and therefore the label) after the product.

Here is a definition of Alt Tags “The alt attribute is used in HTML and XHTML documents to specify alternative text (alt text) that is to be rendered when the element to which it is applied cannot be rendered. It is also used by "screen reader" software so that a person who is listening to the content of a webpage (for instance, a person who is blind) can interact with this element.” enter image description here