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

Change image pasting format from PNG to JPEG (of AVIF) to save disk space #19200

Closed
fockr opened this issue Sep 28, 2021 · 1 comment
Closed

Comments

@fockr
Copy link

fockr commented Sep 28, 2021

Your use case

What would you like to do?

I would like Element to not use PNG format when pasting images from the clipboard.

Why would you like to do it?

The PNG format takes way to much disk space and reduces the transfer speed. Better alternatives exist while preserving the image quality.

How would you like to achieve it?

You could change the default encoder to JPEG or the even more efficient AVIF format.

Have you considered any alternatives?

My current solution to this is saving a file manually as JPEG and uploading it to a room. As to animated GIFs, the AVIF format gives me usually a 10-20 fold decrease of file size.

Additional context

No response

@t3chguy
Copy link
Member

t3chguy commented Sep 28, 2021

The format is set by your browser, not by Element.
Try pasting into http://madebyevan.com/clipboard-test/

image

#4144 is the issue about upload time compression/reencoding

@t3chguy t3chguy closed this as completed Sep 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants