Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Can't upload webp images.  (Read 5894 times)

0 Members and 1 Guest are viewing this topic.

sajeevs

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Can't upload webp images.
« on: November 07, 2022, 07:54:39 am »

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

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: Can't upload webp images.
« Reply #1 on: November 07, 2022, 01:38:13 pm »

Config -> File Settings -> Allowed image types
Logged

KchoPrro

  • Coppermine frequent poster
  • ***
  • Country: es
  • Offline Offline
  • Gender: Male
  • Posts: 296
    • Adolfo Ventas - Naturaleza Andaluza
Re: Can't upload webp images.
« Reply #2 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 ;)
Logged

Joe Carver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1543
  • aka 'i-imagine'
    • Home Page
Re: Can't upload webp images.
« Reply #3 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)

KchoPrro

  • Coppermine frequent poster
  • ***
  • Country: es
  • Offline Offline
  • Gender: Male
  • Posts: 296
    • Adolfo Ventas - Naturaleza Andaluza
Re: Can't upload webp images.
« Reply #4 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.
Logged

Joe Carver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1543
  • aka 'i-imagine'
    • Home Page
Re: Can't upload webp images.
« Reply #5 on: December 30, 2022, 01:28:10 am »

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

KchoPrro

  • Coppermine frequent poster
  • ***
  • Country: es
  • Offline Offline
  • Gender: Male
  • Posts: 296
    • Adolfo Ventas - Naturaleza Andaluza
Re: Can't upload webp images.
« Reply #6 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
Logged

Grimlok

  • Coppermine newbie
  • Country: 00
  • Offline Offline
  • Posts: 9
Re: Can't upload webp images.
« Reply #7 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.
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: Can't upload webp images.
« Reply #8 on: January 16, 2023, 06:03:08 pm »

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
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 19 queries.