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
Comment | File | Size | Author |
---|---|---|---|
#10 | file-mimetype-webm-vtt-1347624-10.patch | 1.97 KB | Jorrit |
#1 | 1347624-file-mimetype-webp.patch | 668 bytes | Dave Reid |
Comments
Comment #1
Dave ReidComment #2
Dave ReidCommitted 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
Comment #3
philsward CreditAttribution: philsward commentedSorry 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 :)
Comment #4
Dave ReidConverting between image types is likely out of scope of core. One could probably add an image style transformation for it in contrib easily.
Comment #5
Dave ReidExpanding scope.
Comment #6
Dave ReidComment #7
Dave ReidComment #8
Jorrit CreditAttribution: Jorrit commentedIs 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?
Comment #9
Jorrit CreditAttribution: Jorrit commented#1: 1347624-file-mimetype-webp.patch queued for re-testing.
Comment #10
Jorrit CreditAttribution: Jorrit commentedI 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.Comment #12
Jorrit CreditAttribution: Jorrit commented#10: file-mimetype-webm-vtt-1347624-10.patch queued for re-testing.
Comment #13
Jorrit CreditAttribution: Jorrit commentedThe two failing tests both seem to be unrelated to the patch.
[edit]: now all tests pass
Comment #14
Dave ReidMerging this into #1443070: Add support for popular e-book formats, Google web formats, mkv and mka in file_default_mimetype_mapping()
Comment #15
Dave ReidMerging this into #1443070: Add support for popular e-book formats, Google web formats, mkv and mka in file_default_mimetype_mapping()
Comment #15.0
Dave ReidAdding weba and webm
Comment #16
Gábor HojtsySwap to the right media tag.
Comment #17
therobyouknow CreditAttribution: therobyouknow commentedSupport 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.