Closed (duplicate)
Project:
Drupal core
Version:
8.0.x-dev
Component:
file system
Priority:
Normal
Category:
Feature request
Assigned:
Issue tags:
Reporter:
Created:
20 Nov 2011 at 19:08 UTC
Updated:
2 Jul 2018 at 17:37 UTC
Jump to comment: Most recent, Most recent file
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 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 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 commented#1: 1347624-file-mimetype-webp.patch queued for re-testing.
Comment #10
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 commented#10: file-mimetype-webm-vtt-1347624-10.patch queued for re-testing.
Comment #13
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 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.