Skip to content

PHP: Support libwebp on PHP 7.0 – 7.3 #1381

Closed as not planned
Closed as not planned
@sejas

Description

@sejas

Some Studio users reported an error uploading webp images to the Media Gallery.

Steps to reproduce:

  1. Download a webp image to your computer. For example: https://www.gstatic.com/webp/gallery/1.webp
  2. Access https://playground.wordpress.net/
  3. Navigate to Media > Upload Images
  4. Select the downloaded image
  5. Observe the error: This image cannot be processed by the web server. Convert it to JPEG or PNG before uploading.

Workaround

  1. Rename the image from 1.webp to 1.jpg in your computer.
  2. Try again uploading the image to the WordPress Media Library
  3. Observe the file is correctly uploaded and it has the webp extension

Screencast

webp-error-and-workaround.mp4

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions