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

Images always sent original size #1333

Closed
fredronnv opened this issue May 6, 2020 · 11 comments · Fixed by #1547
Closed

Images always sent original size #1333

fredronnv opened this issue May 6, 2020 · 11 comments · Fixed by #1547
Assignees

Comments

@fredronnv
Copy link

Regardless of checking "Send image with the original size" the images seem to always get sent using the original size. This seems to have appeared in the latest update (0.19.0) as it worked as expected previously.

@squarepupil
Copy link

Can confirm. 6MB image gets sent as 6MB image!

@Thatoo
Copy link

Thatoo commented May 25, 2020

Same for me

@bmarty
Copy link
Member

bmarty commented May 25, 2020

Image compression has been disabled by @onurays because the library we were using is not compatible with Android 10.

@bmarty
Copy link
Member

bmarty commented May 25, 2020

FTR zetbaitsu/Compressor#150

@bmarty
Copy link
Member

bmarty commented May 25, 2020

To restore the lib usage, see commit f7fd23b for file im.vector.matrix.android.internal.session.content.UploadContentWorker

@Linuxine
Copy link

Linuxine commented Jun 4, 2020

Hi, as Android 10 seems to be used by about 10% of devices only, why disable this feature and penalize about 90% of Android users ? Beside, why leave the non working checkbox in this case, this is confusing ?

For users like me hosting a homeserver, images can easily fill a lot of disk space if not compressed. Any idea if this will be enabled again soon ? This is no big deal since the compression is still working on the classical Riot (non X) , but I was getting used to RiotX, it is nicer :D

@bmarty
Copy link
Member

bmarty commented Jun 10, 2020

I agree that @onurays could have only disable that for Android-10 device.
@onurays any chance you get time to restore that for Android 9 and less?

@flackr
Copy link

flackr commented Jun 19, 2020

It looks like you could also add android:requestLegacyExternalStorage="true" per zetbaitsu/Compressor#134 temporarily to maintain support on Android 10. I'm not aware how this code in RiotX works, but perhaps you could copy the image to scoped storage first per the article linked on that issue.

@onurays onurays linked a pull request Jun 25, 2020 that will close this issue
@witchent
Copy link

I just saw that the pull request will close this issue while not fixing it for android 10. As there is no other issue open about this (and I think this one is fine as it is) maybe you shouldn't close this issue before fixing it for android 10 as well?

@onurays
Copy link
Contributor

onurays commented Jun 25, 2020

I just saw that the pull request will close this issue while not fixing it for android 10. As there is no other issue open about this (and I think this one is fine as it is) maybe you shouldn't close this issue before fixing it for android 10 as well?

@witchent I am working on covering Android 10 and above too and won't close the issue without solving this.

@witchent
Copy link

I just saw that the pull request will close this issue while not fixing it for android 10. As there is no other issue open about this (and I think this one is fine as it is) maybe you shouldn't close this issue before fixing it for android 10 as well?

@witchent I am working on covering Android 10 and above too and won't close the issue without solving this.

This is awesome news, thank you so much for your work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants