-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Thumbnail WebP images as WebP #14890
base: develop
Are you sure you want to change the base?
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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-dev
for Debian/Ubuntu/Raspbian,libwebp-devel
for CentOS/Fedora andlibwebp-devel
forOpenSUSE
- 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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 <[email protected]>
Signed-off-by: tastytea <[email protected]>
Signed-off-by: tastytea <[email protected]>
Signed-off-by: tastytea <[email protected]>
Co-authored-by: Sean Quah <[email protected]> Signed-off-by: tastytea <[email protected]>
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 [email protected]
Pull Request Checklist
EventStore
toEventWorkerStore
.".code blocks
.(run the linters)