Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offer down-sizing when uploading large images #4144

Closed
zzottel opened this issue Jun 1, 2017 · 13 comments
Closed

Offer down-sizing when uploading large images #4144

zzottel opened this issue Jun 1, 2017 · 13 comments
Labels
A-Media O-Occasional Affects or can be seen by some users regularly or most users rarely T-Enhancement

Comments

@zzottel
Copy link

zzottel commented Jun 1, 2017

Like Riot Android does.

In encrypted rooms, large images can be a huge nuisance.

@zzottel
Copy link
Author

zzottel commented Jun 1, 2017

See also #2678

@lampholder
Copy link
Member

Is it tractable to solve #2678?

@Thatoo
Copy link

Thatoo commented May 5, 2019

That is really missing on desktop compare to android app.

@popindavibe
Copy link

Any news on this? Just realized today the inconsistency between the Android app and Element-Web on image uploads.

@ralphholz
Copy link

Seconded - when using different chats and pasting for different audiences, an automatic downsampling would be much appreciated.

@progserega
Copy link

It is problem, when send big image to mobile clients over element-desktop. Mobile clients said that they get too long time for get images "in matrix", situation was otherwise whatsapp and other - they was more usable.

@akoyaxd
Copy link

akoyaxd commented Jun 24, 2021

Pasting Images on Element Web is another use case of compression because Images from "clipboard" are pasted as uncompressed png's. Compressing them to jpeg's (with lower resolution) would be super convenient!

@hebrides
Copy link

hebrides commented Aug 1, 2021

It's trivial to compress images to jpgs using the canvas element... can we start here? Anyone know a script we can run on a self-hosted server to accomplish this?

@hebrides
Copy link

hebrides commented Aug 1, 2021

@ShadowJonathan
Copy link
Contributor

Related; element-hq/element-ios#4479, they're kinda struggling with the same problem, and ios already has pre-existing design/heuristics for this. Plus it's mentioned that android has as well.

@t3chguy
Copy link
Member

t3chguy commented Aug 2, 2021

Anyone know a script we can run on a self-hosted server to accomplish this?

Adding a server-side component to Element would be a no-go. This would need to be local given the nature of end-to-end encrypted messaging.

@SimonBrandner SimonBrandner added A-Media O-Occasional Affects or can be seen by some users regularly or most users rarely and removed P2 labels Aug 22, 2021
@Fuzzillogic
Copy link

Someone just sent me a screenshot of a game, by pasting the screenshot in Element Desktop. It was a 4K screenshot. The resulting png-compressed image was 15MiB, which is now stored for a really long time on both our servers. The same information could have been conveyed by a 150KiB lossy WebP, even at 4K resolution; there was no need for a lossless image here.

Microsoft Teams smashes every pasted image down to an ugly jpeg, even when png would be smaller (let alone lossless webp), which is also a bad decision. However, when pasting large images, some more options would be welcome. A default action of scaling it down to HD with lossy WebP compression would be fine in my book.

@t3chguy
Copy link
Member

t3chguy commented Jul 19, 2023

Closing in favour of #14047

@t3chguy t3chguy closed this as completed Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Media O-Occasional Affects or can be seen by some users regularly or most users rarely T-Enhancement
Projects
None yet
Development

No branches or pull requests