Skip to content
This repository has been archived by the owner on Nov 18, 2021. It is now read-only.

First-class support for WebP image format #976

Open
scottdweber opened this issue Jul 19, 2017 · 4 comments
Open

First-class support for WebP image format #976

scottdweber opened this issue Jul 19, 2017 · 4 comments
Labels
enhancement file-view github/feedback Also filed in or related to official github/feedback repo render

Comments

@scottdweber
Copy link

The support for image formats (e.g. PNG, JPEG) in both the source viewer and in Pull Request files list is excellent and feature-rich. It would be fantastic for WebP images to be supported just as thoroughly, at least for those browsers in which it is supported.

This would be especially helpful for Android projects, where WebP assets are fully supported and have become the recommendation.

@lukeeey
Copy link

lukeeey commented Apr 1, 2018

It would also help when uploading profile images, since you have to first convert it to a supported format to upload it.

@xan2622
Copy link

xan2622 commented Dec 4, 2019

I second this request. I hope .webp images will be supported on Github.

I have tried to upload an image (it was a .webp file) and I was surprised to see this error message:

Capture

It's surprising because webp has great specifications, it can even replace .jpg or .png files in many cases.

https://developers.google.com/speed/webp

@AlxHnr
Copy link

AlxHnr commented Jan 16, 2021

@xan2622

If you rename your .webp file to .gif, GitHub will allow you to upload it. And since browsers parse the images header first, it will automagically work. I just confirmed this on Firefox and Chrome, both on Linux and Android. This works well for issues, pull requests and READMEs.

@TPS
Copy link
Collaborator

TPS commented Sep 4, 2021

I filed this as a stub in community/community#5470. Anyone who'd like to expand, please feel free! 🙇🏾‍♂️

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement file-view github/feedback Also filed in or related to official github/feedback repo render
Projects
None yet
Development

No branches or pull requests

6 participants