New image format by Google:
http://en.wikipedia.org/wiki/WebP
http://code.google.com/speed/webp/
http://en.wikipedia.org/wiki/WebM

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: http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Dave Reid’s picture

Status: Active » Needs review
FileSize
668 bytes
Dave Reid’s picture

Committed support via File entity and Media module for Drupal 7 in the meantime, but this should be backported.
http://drupalcode.org/project/file_entity.git/commit/e5769ae
http://drupalcode.org/project/media.git/commit/5f90e1d

philsward’s picture

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 :)

Dave Reid’s picture

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

Dave Reid’s picture

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

Expanding scope.

Dave Reid’s picture

Issue tags: +Media Initiative
Dave Reid’s picture

Status: Needs review » Needs work
Jorrit’s picture

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?

Jorrit’s picture

Status: Needs work » Needs review

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

Jorrit’s picture

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.

Jorrit’s picture

Status: Needs work » Needs review
Issue tags: +Needs backport to D7, +Media Initiative
Jorrit’s picture

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

[edit]: now all tests pass

Dave Reid’s picture

Dave Reid’s picture

Dave Reid’s picture

Issue summary: View changes

Adding weba and webm

Gábor Hojtsy’s picture

Issue summary: View changes
Issue tags: -Media Initiative +D8Media

Swap to the right media tag.

therobyouknow’s picture

Support for webp for example still not working in 8.5.4 it seems: https://www.drupal.org/project/drupal/issues/2313075#comment-12670991

Also, not sure why this 8.0 issue is being merged into a 7.x issue: https://www.drupal.org/project/drupal/issues/1443070

Thank you for your attention to this matter, please share your thoughts.