tuskyapp / Tusky

An Android client for the microblogging server Mastodon
https://tusky.app
GNU General Public License v3.0
2.49k stars 390 forks source link

Zoom in photos without opening them #3113

Open olekstomek opened 1 year ago

olekstomek commented 1 year ago

In order to be able to enlarge a photo (zoom-in) I must first click on the photo and then I can enlarge it. It would also be convenient to add the ability to quickly zoom in on a photo - by stretching your fingers (this is how it works in the Instagram application). Thanks to this, I don't have to open the photo to enlarge it, but I can enlarge it right away. (https://github.com/mastodon/mastodon-android/issues/479)

connyduck commented 1 year ago

Yes that would be convienent but it also means loading all images fullsize immediately which would make Tusky use way more data.

Mattis142 commented 1 year ago

Couldn't you load the full size one while the user zooms in rather than before they zoom in?

connyduck commented 1 year ago

I guess, but the full size will take a while to load and with zooming one usually expects immediate feedback, I doubt it will make for a good user experience.

Mattis142 commented 1 year ago

I guess, but the full size will take a while to load and with zooming one usually expects immediate feedback, I doubt it will make for a good user experience.

Maybe you could IF the image is fully loaded allow zooming in, if only the low res one loaded you could simply prevent zooming until it loaded

Lakoja commented 1 year ago

This would (technically) be rather complicated from a good or consistent UI perspective.

Because network lag and/or server lag is a topic.

I wonder how Instagram does it?

What happens for example if I want to enlarge it and the loading (then) takes some time? There couldn't be a snappy enlargement but some sort of waiting animation (?) would need to be displayed only then.

(So the current "tap first, wait, enlarge" is at least consistent and predictable for the user.)

Mattis142 commented 1 year ago

This would (technically) be rather complicated from a good or consistent UI perspective.

Because network lag and/or server lag is a topic.

I wonder how Instagram does it?

What happens for example if I want to enlarge it and the loading (then) takes some time? There couldn't be a snappy enlargement but some sort of waiting animation (?) would need to be displayed only then.

(So the current "tap first, wait, enlarge" is at least consistent and predictable for the user.)

From what I've seen Telegram doesn't have a low and high res version so the user waits until the image fully loaded and only then is able to zoom in, before that is only a blurry image preview with a loading spinner

Edit: I thought you said telegram instead of Instagram but I actually like the telegram behavior a lot

olekstomek commented 1 year ago

I think that on Instagram it is zoom without increasing of image quality. I checked that when I zoom-in picture my network doesn't send more data. And you can zoom-in also video so it looks that is "technical zoom" like in webrowswer for example using ctrl and + or ctrl and scroll on your mouse.