Can't upload webp images. Can't upload webp images.
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Can't upload webp images.

Started by sajeevs, November 07, 2022, 07:54:39 AM

Previous topic - Next topic

0 Members and 4 Guests are viewing this topic.

sajeevs

Hello, I can't upload webp images. Error showing that this image format is not supporting.

ron4mac

Config -> File Settings -> Allowed image types

KchoPrro

Quote from: ron4mac on November 07, 2022, 01:38:13 PM
Config -> File Settings -> Allowed image types

It's funny, I haven't needed to upload a webp image until now and I haven't been able to either. I have followed your advice, I have added the webp type to the allowed images, I have left it like this:

jpeg/jpg/png/gif/webp

But the system responds to me with this nice phrase:

"Camouflage_fabric.webp
No Reason Phrase"

It is not a problem for me, I change it to JPG and the problem is solved, it was just to add that I could not get a webp image either ;)

Joe Carver

Server-side software needs to be able to handle the images.

Use phpinfo to check if the feature is enabled for what you are using. (GD or ImageMajick)

KchoPrro

Quote from: Joe Carver on December 28, 2022, 12:03:55 AM
Server-side software needs to be able to handle the images.

Use phpinfo to check if the feature is enabled for what you are using. (GD or ImageMajick)

Looking at my phpinfo, it seems that everything is correct. I am attaching screenshots of phpinfo, in addition to my CPG settings.

Joe Carver

I can confirm that behavior. Will try to take a look in the next days.

KchoPrro

Quote from: Joe Carver on December 30, 2022, 01:28:10 AM
I can confirm that behavior. Will try to take a look in the next days.

Ok, thank you very much for the work, it's not really important to me, but if another user needs it, it will be good to study the problem.

By the way, I have PHP Version 8.1.11 installed on my hosting

Grimlok

Hi - has there been any investigation on this? I also cannot upload .WEBP files to my gallery, even if I added the filetype to the "Allowed image types" option under File Settings.

Running PHP version 8.1.14, and using GD.

ron4mac

You will need to use the File Types Editor plugin to add 'webp' as a valid file type.
The lack of more clear error information that was experienced during the upload will be corrected in CPG 1.6.22