Thumbnail WebP images as WebP#14890
Conversation
|
At #7586 (comment) @erikjohnston said:
I think in the (almost) 3 years since that comment support for WebP has increased, back in May of 2020 Safari (on both iOS and macOS) didn't support WebP, where it looks like it is widely supported now. The only folks who might have an issue are people on macOS < 11 where transparency of WebP is not supported. This shouldn't be any worse than what we currently do of thumbnailing to JPEG! (Latest IE 11 and KaiOS Browser 2.5 also don't support WebP, but those are hardly used.) I'm a little less confident about mobile support (I'm not sure how mobile clients usually render images), but have asked internally about that. tl;dr I think it is reasonable to support this, but I have a few questions:
Can we now update the tests at |
Looks like it is supported since pillow 2.4.0 from 2014 and it needs libwebp. |
squahtx
left a comment
There was a problem hiding this comment.
Looks good. Now that we're relying on libwebp, we should also:
- Update the installation instructions in docs/setup/installation.md
https://github.com/matrix-org/synapse/blob/4eb2f4e02b83c90519a8a55c562d1fafab7caf0b/docs/setup/installation.md#platform-specific-prerequisites
The package name islibwebp-devfor Debian/Ubuntu/Raspbian,libwebp-develfor CentOS/Fedora andlibwebp-develforOpenSUSE - Add a check for webp support to synapse/rest/media/v1/__init__.py
https://github.com/matrix-org/synapse/blob/develop/synapse/rest/media/v1/__init__.py
|
Cross-referencing matrix-org/matrix-spec#453. |
|
Updated instructions and added check; also fixed the zlib check error message while i was there. |
83543e2 to
136ab36
Compare
squahtx
left a comment
There was a problem hiding this comment.
Thanks for updating the docs so thoroughly!
Just one minor thing left.
22f718e to
104d257
Compare
Closes: matrix-org#11840 Signed-off-by: Ronny (tastytea) Gutbrod <tastytea@tastytea.de>
Signed-off-by: tastytea <tastytea@tastytea.de>
Signed-off-by: tastytea <tastytea@tastytea.de>
Signed-off-by: tastytea <tastytea@tastytea.de>
Co-authored-by: Sean Quah <8349537+squahtx@users.noreply.github.com> Signed-off-by: tastytea <tastytea@tastytea.de>
104d257 to
71c37cf
Compare
|
updated since the location of |
|
I suspect this needs something like MSC4011 by the way to unstick the current issue. |
I'm testing it since about 3 months (on a single user server) and it works fine.
Closes: #11840
Signed-off-by: Ronny (tastytea) Gutbrod tastytea@tastytea.de
Pull Request Checklist
EventStoretoEventWorkerStore.".code blocks.(run the linters)