Jump to content

Edit History

pepperoni

pepperoni

Hi guys,

So I'm trying to achieve all my product images to use webp format, AND not create other unnecessary formats like jpg.

I have tried two different things.

1. Having the 'Multiple image formats' Enabled in New & Experimental Features.

image.png.76b5f442da21b659c8f9c580c93afee2.png

and having chosen 'WebP' in Image Settings.

image.png.2fc17db448a60b7b4320b2201630cdf5.png

With this configuration I confirm we can achieve webp image generation but at the same time it generates same images in jpg format too! That it not desirable for me, as I won't use the jpg files and it increases the account file size.

 

2. The second thing I tried is have the 'Multiple image formats' Disabled in New & Experimental Features.

image.png.cc10c6574b70f3c63f24c0bc00c45260.png

This makes the Image settings look a bit different. So here is what I have, Use WebP for all images.

image.png.60c2b44d2a87ac30e6ccb16ae7db0be4.png

With this configuration, the system generates images only in one format. The funny thing is the format is weird. You get .jpg files but the images are not jpg encoded, they are webp encoded. Think of it as in the first option above you take a webp image and you just rename it to .jpg, ie my_image.webp -> my_image.jpg.

 

What I'm trying to do is just get webp images (not any other formats). Second configuration above is very close. If only the generated images had .webp instead of .jpg.

Can anyone point me in the right direction of what is the file responsible for the naming of the images? I can change the code myself.

 

If someone had achieved similar thing using first configuration, then that I'd be fine with it too.

Please shed some light if you know more.

many thanks

prestashop version 8.1.3

 

 

pepperoni

pepperoni

Hi guys,

So I'm trying to achieve all my product images to use webp format, AND not create other unnecessary formats like jpg.

I have tried two different things.

1. Having the 'Multiple image formats' Enabled in New & Experimental Features.

image.png.76b5f442da21b659c8f9c580c93afee2.png

and having chosen 'WebP' in Image Settings.

image.png.2fc17db448a60b7b4320b2201630cdf5.png

With this configuration I confirm we can achieve webp image generation but at the same time it generates same images in jpg format too! That it not desirable for me, as I won't use the jpg files and it increases the account file size.

 

2. The second thing I tried is have the 'Multiple image formats' Disabled in New & Experimental Features.

image.png.cc10c6574b70f3c63f24c0bc00c45260.png

This makes the Image settings look a bit different. So here is what I have, Use WebP for all images.

image.png.60c2b44d2a87ac30e6ccb16ae7db0be4.png

With this configuration, the system generates images only in one format. The funny thing is the format is weird. You get .jpg files but the images are not jpg encoded, they are webp encoded. Think of it as in the first option above you take a webp image and you just rename it to .jpg, ie my_image.webp -> my_image.jpg.

 

What I'm trying to do is just get webp images (not any other formats). Second configuration above is very close. If only the generated images had .webp instead of .jpg.

Can anyone point me in the right direction of what is the file responsible for the naming of the images? I can change the code myself.

 

If someone had achieved similar thing using first configuration, then that I'd be fine with it too.

Please shed some light if you know more.

many thanks

 

 

 

×
×
  • Create New...