New image format by Google:

File extension: .webp
Mime type: image/webp

File extension: .weba
Mime type: audio/webm

File extension: .webm
Mime type: video/webm

These mime types and extensions have been confirmed by the current mime mapping in Apache:

#10 file-mimetype-webm-vtt-1347624-10.patch1.97 KBJorrit
PASSED: [[SimpleTest]]: [MySQL] 37,000 pass(es).
[ View ]
#1 1347624-file-mimetype-webp.patch668 bytesDave Reid
PASSED: [[SimpleTest]]: [MySQL] 37,011 pass(es).
[ View ]


Status:Active» Needs review
new668 bytes
PASSED: [[SimpleTest]]: [MySQL] 37,011 pass(es).
[ View ]

Committed support via File entity and Media module for Drupal 7 in the meantime, but this should be backported.

Sorry if this isn't the place to post this, but what are the thoughts on setting up core to convert the image from jpg / png to the webp format and serving both legacy and new webp format, depending on the browser's capability of understanding the new format?

I guess my question is: "How cool would it be to have Drupal as the first CMS to push WebP by default?" I like what I see with the new format, taking a 238kb sized file and compressing it 113kb with a quality setting of 90. I expect all of the major browsers (except IE) to quickly adopt the new format and the more who start pushing it, the faster M$ will be forced to implement it. I realize there's a lot to this request, just throwing out the idea :)

Converting between image types is likely out of scope of core. One could probably add an image style transformation for it in contrib easily.

Title:Add support for the webp file typeAdd support for the Google web file types: weba, webm, and webp

Expanding scope.

Issue tags:+Media Initiative

Status:Needs review» Needs work

Is it possible that the patch from #1 is committed to D8, D7 and perhaps D6 separately from an increase in the scope to Media Initiative?

Status:Needs work» Needs review

#1: 1347624-file-mimetype-webp.patch queued for re-testing.

new1.97 KB
PASSED: [[SimpleTest]]: [MySQL] 37,000 pass(es).
[ View ]

I have updated the above patch to include .webm, .weba and .webp. I have also taken the liberty to add the extension and mime type for WebVTT, which is the new HTML5 <video> caption/subtitle format. I hope that this patch can be committed soon, I will backport this to Drupal 7 when this is committed to Drupal 8.

Status:Needs review» Needs work
Issue tags:-needs backport to D7, -Media Initiative

The last submitted patch, file-mimetype-webm-vtt-1347624-10.patch, failed testing.

Status:Needs work» Needs review
Issue tags:+needs backport to D7, +Media Initiative

The two failing tests both seem to be unrelated to the patch.

[edit]: now all tests pass

Issue summary:View changes

Adding weba and webm