• 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

Attachments:

Comments

Fred 07 Feb 2025, 23:40

Please give me a link to that page

francois andrieu 08 Feb 2025, 10:21

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

Fred 08 Feb 2025, 13:36

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

francois andrieu 08 Feb 2025, 15:02

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

Fred 08 Feb 2025, 23:20

we can define default values in code, that will help if you have all images with the same dimensions

francois andrieu 09 Feb 2025, 00:09

ok thanks but all is not the same, thanks a lot Fred

Fred 09 Feb 2025, 00:20

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"