Open e-caste opened 1 year ago
@SystemKeeper @Ivansss I have a couple of thoughts about this issue, I'll write them here since in the chat they may get lost.
If I understand correctly, all images are converted to JPEG and then compressed at 70% quality: https://github.com/nextcloud/talk-ios/blob/4aea12dfce3e6e7d1ba815e9e7e067e3fb220f60/ShareExtension/ShareItemController.m#L29
Instead, I can't find where the videos are compressed before sending, but I know the app does it since I always see the compression bar before sending a video.
I wanted to address a couple issues:
Hey @e-caste
thank you for taking a look at this one :-) I really think that would be a great improvement!
Regarding your questions:
I'm not really sure about the switch. What do you think about the way mail handles this when pressing send?
I don't think the algorithm is to blame here, I'm pretty sure WhatsApp & Co. are not just compressing the image but also reducing the size (height/width). So maybe we should take a look at this as well.
What do you think?
@SystemKeeper
Yeah, it may be a bit more cumbersome for the user but it allows for more options. I would use this new version of the multi-select (I don't know what it's called on iOS, here I invoked it by tapping on "Priority"):
It may be a good idea to reduce the size. I've found this StackOverflow solution. I can't easily find any better compression algorithm for media on the Internet, and that API is still available even though it was introduced in iOS 2.0 so maybe it's still the way to go, my only concern was that it could have been deprecated.
I think the app should also provide the same behavior for videos, do you think it's doable?
Is your feature request related to a problem? Please describe. Describe the solution you'd like
Stemming from this comment and my reply to it.
It would be a better UX (faster uploads/downloads) if, instead of the current workflow:
the workflow would be as such:
My reason for this issue is mainly that the current workflow to send and receive media with Nextcloud Talk iOS is a bit clunky, and sometimes it outright doesn't work if the network conditions aren't good enough (e.g. out hiking), while other apps (the usual names, Whatsapp, Telegram, iMessage, etc.) work in the same conditions.
Downloading the full compressed media file instead of its thumbnail would also allow to present it in a bigger and clearer fashion in the chat (see https://github.com/nextcloud/talk-ios/issues/776).
Of course, Nextcloud is first and foremost a cloud service to host files as the name says, so it would be nice if compressing a media file was the default but the user was still offered the option to send the full fat uncompressed file to preserve quality. For example Telegram solves this issue by giving a button to "Send as file" in the selection view.
Describe alternatives you've considered Nothing, just sending the uncompressed file which takes a long time (sometimes too long).
Additional context Other apps are faster, but I'd like to be able to rely on Nexctloud Talk even in direr situations.