- Priority: 0
- Status: Waiting on customer
- Theme: Alysum
-
Assigned To:
Fred
- Private: No
- Open Date: 07.02.25, 09:38
- Opened by: francois andrieu
Ticket #25949 - problem images in description of products on amp
hello Fred
i have also a problem of my little images that are in description of products for amp , on desktop all is good , but on mobile these litlle images are completly in distortion, see that example
Comments
Please give me a link to that page
https://www.securachat.fr/136-hac-hfw1200cm-0280b-s6-camera-tube-hdcvi-dahua-2mp-au-meilleur-prix.html
this is the link example, i have some pages like this with small images in products, this is the desktop version here good, but the problems are in mobile just, we have many pages like this
Ok, I see.
When you add an image to your description you have to do that properly. There wa missed required attributes https://mega.nz/file/0Io3zTyS#VQLT75KgWp4fZZobBRFnNg77WPNlPCNgHgZN6V5Y99g I just added those attributes as an example and you can see that image is displayed correctly now
THANKS Fred , i see like you have done it is good, we need to do all these updates , no solution to do that for all products automatically?
if you have an idea let me know, thanks a lot
we can define default values in code, that will help if you have all images with the same dimensions
ok thanks but all is not the same, thanks a lot Fred
As you can see here https://amp.dev/documentation/components/amp-img
every amp image "must be given an explicit size (as in width / height) in advance"