Jump to content
Thommen

How to upload webp files

Recommended Posts

When uploading product files in webp format, I have

Quote

Image format not recognized, allowed formats: gif, jpg, png

How can I upload webp files to PrestaShop 1.7?

Share this post


Link to post
Share on other sites
En 8/5/2020 a las 11:15 AM, ludovic mantion dijo:

je suis aussi entrain de regarder.

Pour suivre

Hi, any solution for this problem?? i have webp images but is not recognized by prestashop

Share this post


Link to post
Share on other sites
En 21/4/2020 a las 4:33 PM, Thommen dijo:

When uploading product files in webp format, I have

How can I upload webp files to PrestaShop 1.7?

Hi thomman, thanks for your help, your link say buy a prestashop modul?? Any free modul for it?? 

Share this post


Link to post
Share on other sites

There are no free modules, they are only paid.

Share this post


Link to post
Share on other sites

Hello @Thommen,

In this case you have 2 ways:

1) Convert your image to other allowed formats

2) Modify core of PrestaShop to upload your format.

Share this post


Link to post
Share on other sites

@HelperPro

I gave the solution, only my post was deleted

 

Share this post


Link to post
Share on other sites

Hi both, 

 

Modify core prestashop is not possible for me 🙃, i don't have the know for it. 

This is the code, rigth? 

find. name "*.png" | xargs -I {} cwebp {} -o {}

 

Regards

 

Share this post


Link to post
Share on other sites

This is a CLI command that you enter after connecting via SSH. You can set it in crontab to automatically search and replace image files. Remember that the command is for PNG files. You can extend it with additional extensions. The host must support cwebp from →  https://developers.google.com/speed/webp

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More