forum.coppermine-gallery.net

Support => cpg1.6.x Support => cpg1.6 upload => Topic started by: sajeevs on November 07, 2022, 07:54:39 am

Title: Can't upload webp images.
Post by: sajeevs on November 07, 2022, 07:54:39 am
Hello, I can't upload webp images. Error showing that this image format is not supporting.
Title: Re: Can't upload webp images.
Post by: ron4mac on November 07, 2022, 01:38:13 pm
Config -> File Settings -> Allowed image types
Title: Re: Can't upload webp images.
Post by: KchoPrro on December 27, 2022, 08:02:31 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 ;)
Title: Re: Can't upload webp images.
Post by: 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)
Title: Re: Can't upload webp images.
Post by: KchoPrro on December 28, 2022, 11:21:41 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.
Title: Re: Can't upload webp images.
Post by: 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.
Title: Re: Can't upload webp images.
Post by: KchoPrro on December 30, 2022, 12:22:14 pm
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
Title: Re: Can't upload webp images.
Post by: Grimlok on January 16, 2023, 06:36:49 am
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.
Title: Re: Can't upload webp images.
Post by: ron4mac on January 16, 2023, 06:03:08 pm
You will need to use the File Types Editor (https://forum.coppermine-gallery.net/index.php/topic,79569.0.html) 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