WordPress.org

Make WordPress Core

Opened 4 years ago

Last modified 5 months ago

#35726 new feature request

Add .webp support to WP_Image_Editor_GD

Reported by: markoheijnen Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Media Keywords:
Focuses: Cc:
PR Number:

Description

Since GD has a imagewebp function now, it would be great to integrate that into WordPress as well.
It's not something core will use but it will be nice for plugins to use the WordPress API instead of building there own solution.

Attachments (1)

35726.patch (1.3 KB) - added by markoheijnen 4 years ago.
Works only when no actions are applied

Download all attachments as: .zip

Change History (3)

This ticket was mentioned in Slack in #core-images by markoheijnen. View the logs.


4 years ago

@markoheijnen
4 years ago

Works only when no actions are applied

#2 @markoheijnen
4 years ago

Currently only works when no resizing has been done. I haven't pinpointed the problem yet.
Also there is no IMG_WEBP so I currently use function_exists('imagewebp') to check for it.

Note: See TracTickets for help on using tickets.