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

Files: 
CommentFileSizeAuthor
#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 ]

Comments

Dave Reid’s picture

Status:Active» Needs review
StatusFileSize
new668 bytes
PASSED: [[SimpleTest]]: [MySQL] 37,011 pass(es).
[ View ]
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

StatusFileSize
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.

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