Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 291181

Let GDToolkit support WEBP image format

$
0
0

Problem/Motivation

Related to #2313075: Allow users to upload webp files in image fields

Since webp is becoming popular, it would be nice if contrib could change the supportedTypes of GDToolkit without needing the extend the class, or even better add support for WebP out of the box.

PS: PHP 5.5 has build in support for WebP and since PHP 5.4 will be abandoned somewhere in 2015, it might be easier to just add support for it.

Proposed resolution

Add usage of IMAGETYPE_WEBP constant support to GDToolkit plugin to allow create Images of WebP format

Detection of format support historically unsupported by core's GD integration so presence of real support (internals of PHP) is out of scope of the issue

Remaining tasks

- agree on feature addition
- commit

User interface changes

ability to create WebP images using image styles

API changes

no

Data model changes

no

Release notes snippet

The GD toolkit and, therefore Image styles, can manage WebP images. Please note that the PHP installation needs to be compiled with the WebP support in order to enable this format.


Viewing all articles
Browse latest Browse all 291181

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>