How to change the URL to the image?

Hello Volks.

As default, the image related to an product is accessible via a quite long crypted path. (hover over the image, right clisk, open in new tab…)

The image is fully presented in a path like:
https://Mycustomer.com/storage/44096ED6AE7253602276FC70BD64331B776E765424FCA4127D9AE22F29C7DE04/a7b1af31c83b4b17a1e4207d43975689/jpg/media/bf082370a6474e6d85c49e930b7fea96/235708.jpg

Following questions around this:

  1. Is there a configurabel way, or other suggested method, to change this to a more friendly path? Sharing this path to friend is not really easy/userfrienly, I assume SEO Google ranking do not top score these path compared to /minaprodukter/musmattor/velcro/12345_1.jpg

  2. Assume you want to download all related images to a product. Is there a suggested way to implement this? ( e.g. User enter mycustomer.com/downloads/EAN_1234. This should result a selection of all images with a regexp match to "EAN_1234 and return a zip containing images… )

Litium version: [6.?]

/Erik

No, it does not exist any configuration that make you change the url. The url is created to make the images secure and cachable by browsers and content delivery networks. If you change the uploaded media for the file-entity the url will be changed so the user will get the new image directly without problem with browser caches. You have some parts in the url that you can change, see the Custom image resizer for more details.

We haven’t got any notifications that this type of url’s is bad for SEO, the important is that the image-tag that is used on the page have proper attributes set so google can associate the image with example the product. If you have any source of that the url should matter and we should be happy if you was able to share them with us.

This can be implemented as a controller in your solution that listen on example the /download/{*searchterm} and creating the zip-package containing the matching media.