View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004049 | Composr | core | public | 2020-01-23 03:29 | 2020-01-23 20:40 |
Reporter | Adam Edington | Assigned To | Chris Graham | ||
Severity | Feature-request | ||||
Status | resolved | Resolution | fixed | ||
Product Version | |||||
Fixed in Version | |||||
Summary | 0004049: webp support | ||||
Description | webp is now supported in all the major browsers but Composr doesn't allow uploading of webp. Given the files are smaller and faster loading with no loss of quality I think it's about time we allowed this image type. | ||||
Additional Information | Useful way to convert png/jpg to webp (for those who would rather not have mixed file types). <?php $file = 'image.jpg'; // or image.png $image = imagecreatefromstring(file_get_contents($file)); ob_start(); imagejpeg($image,NULL,100); $cont = ob_get_contents(); ob_end_clean(); imagedestroy($image); $content = imagecreatefromstring($cont); $output = 'image.webp'; imagewebp($content,$output); imagedestroy($content); echo '<h4>Output Image Saved as '.$output.'</h4>'; ob_flush(); ?> And there's a polyfill for browsers that don't support WebP @ https://github.com/chase-moskal/webp-hero | ||||
Tags | No tags attached. | ||||
Time estimation (hours) | |||||
Sponsorship open | |||||
|
IE10 is EOL on January 31 this month. IE11 will be some time further. Generally our baseline web standards support for Microsoft is what Microsoft has considered EOL. However, that doesn't mean we can't mark webp safe within Composr and make it a choice of the user. 99% of the work was already done for this in v11. I just did the final thing of marking the format web-safe. It wasn't actually on my radar that Firefox had implemented webp! As for Composr, I don't really want us adopting webp for bundled images. It only is a very marginal improvement over jpeg for lossless and png for lossy, yet jpeg and png are very widely supported in graphics apps. I'd like to see one of the competing new lossy formats succeed and leapfrog webp. Google are pushing webp as they do like to push things they develop internally even if they are of marginal utility. |
|
Yeah I am using png and jpg as the source, just converting to a more modern file type so I don't have to work with 2 file types in the templates. I have no intention of editing webp in graphics apps. I just read about all major modern browsers having support with the exception of Safari on iOS (which is a work in progress so will be supported soon) and I noticed I couldn't upload webp in Composr so thought I'd mention :) Also seeing a lot of .jiff images around the web these days, no idea what that's about. You can save them as jpg so I don't get the point and not much info on .jiff files. |
Date Modified | Username | Field | Change |
---|---|---|---|
2020-01-23 03:29 | Adam Edington | New Issue | |
2020-01-23 06:44 | webbitcoinclub | File Added: 5ebc6ed639d07cf10e1b999783370a82.jpg | |
2020-01-23 08:26 | Adam Edington | File Deleted: 5ebc6ed639d07cf10e1b999783370a82.jpg | |
2020-01-23 15:29 | Chris Graham | Assigned To | => Chris Graham |
2020-01-23 15:29 | Chris Graham | Status | non-assigned => resolved |
2020-01-23 15:29 | Chris Graham | Resolution | open => fixed |
2020-01-23 15:29 | Chris Graham | Note Added: 0006304 | |
2020-01-23 17:04 | Adam Edington | Note Added: 0006306 | |
2020-01-23 17:05 | Adam Edington | Note Edited: 0006306 | View Revisions |
2020-01-23 20:40 | Adam Edington | Additional Information Updated | View Revisions |