-
Notifications
You must be signed in to change notification settings - Fork 287
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
Load image thumbnail in sidebar - Discussion #1295
Comments
Hey there @jywarren @cesswairimu @TildaDares @PeculiarE What are your thoughts on this feature?
I'd appreciate your thoughts Also had a thought to add an event listener to the image itself, instead of the place on map button, when the user hovers over an image or a thumbnail, a tooltip pops up and reads Note, this task is consistent with task distribution @segun-codes and I agreed upon and listed it on the Trello board, many thanks! |
Hi, I think this is a good project to take up next. You might try opening a really big archive.org collection to see "how bad it is" when it tries to load a lot of images. The other thought I had was - what if we have it fail gracefully -- i.e. we just search for thumbnails, and if there are no matches, we just show the full image. Although it could cause trouble (we'll find out how much trouble in the above testing of a big gallery), that way if there are some images without, the whole experience still fundamentally works even though you have to wait longer for them to load. This is complexity but if the complexity fails we're essentially reverting back to how it was, in terms of UX. What do you think? The tooltip sounds interesting, but it might not work well on mobile devices. Sometimes we can shorten the text on a button by moving some longer explanation to a tooltip though. What about the button saying "place" or showing an icon, but the tooltip says "place image on map" or something? |
Alright, @jywarren, that sounds good, I would test it out with a collection with a lot of images. That's a good one @jywarren, so if i run a match for thumbnails and there aren't any or not all have one, we default to the full image. I will test this out and see where it leads. It sounds quite interesting. Very true, mobile would be a hassle for the tooltip. Yea the shortening sounds good, but where do we intend to implement it? on mobile? or on all screens? or when we're loading a lot of images? |
I think if we add a tooltip, we could shorten the button text for all
devices. Thanks!
On Wed, Dec 14, 2022 at 12:12 PM Malik ***@***.***> wrote:
Alright, @jywarren <https://github.com/jywarren>, that sounds good, I
would test it out with a collection with a lot of images.
That's a good one @jywarren <https://github.com/jywarren>, so if i run a
match for thumbnails and there aren't any or not all have one, we default
to the full image. I will test this out and see where it leads. It sounds
quite interesting.
Very true, mobile would be a hassle for the tooltip. Yea the shortening
sounds good, but where do we intend to implement it? on mobile? or on all
screens? or when we're loading a lot of images?
—
Reply to this email directly, view it on GitHub
<#1295 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAF6J6QFJRS7VQBPAE4K2LWNH5XNANCNFSM6AAAAAAS6KPPUA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
Okay, but for the sake of user experience I think the tooltip should read 'click button to place on map' or any alternative that's quite suggestive. I'd like to think that mental model suggests that a tooltip saying 'place on map' (especially on bigger screens - laptop, desktop etc.) upon hovering over an image means the user should drag and drop the image on the tile.
|
Alright @jywarren |
Hello @jywarren, I've encountered some issues as regards this feature. Description 1Firstly, I wanted to kick off with the cap/limit, which entails that once the images gotten from the response are above a certain amount --say 100, the program defaults to using thumbnails. I placed the code snippet below in the
Issue 1The Description 2 / Issue 2While testing out the thumbnails, I noticed that when I placed the thumbnail images on the map, they were pixelated. Proposed solution to Issue 2We could render the images as is from the response, and only change the image size to say 65 x 65, here is a sample of what I From my observation, it takes a lot longer to place an image from a large collection on the map and also to fetch it from archive.org Final thoughtsI would like your thoughts on my progress so far and a way to address issue 1, maybe a substitute for |
@segun-codes you could also check this out and let me know what you think. As for issue #1, I'm not sure I understand the problem clearly, but if what you mean is that because not all files returned from IA have format png or jpeg, variable You can re-clarify, if my understanding is faulty, many thanks! |
@jywarren, @7malikk... you know I'm wondering why will a user have need to fetch 100images (and having to wait) in one fell swoop when there's only so much images the user can distort/knit per time. If IA API provides a way to fetch in batches, say 20images per fetch cycle from a folder containing 100images, we could improve user experience this way. Just thinking aloud. |
I like the idea, i wonder what @jywarren thinks, do we go this route or do you have something else in mind? |
1 similar comment
I like the idea, i wonder what @jywarren thinks, do we go this route or do you have something else in mind? |
Okay... |
What about doing "pagination" (i.e. batches of 100 images) only on the client side, not via requesting fewer images from IA? So, we fetch all items in JSON, but only display 100 at a time? For counting, maybe we need to pre-process (scan through) all images to count thumbnails vs. non-thumbnails? That can give us things like total count. Regarding pixellation, are you using the original image when placing, instead of the thumbnail it's associated with? Each thumbnail has an "original" counterpart, right? Thanks!! |
I like your idea for issue #2. However, implementation such as resizing the image in normal size just before displaying it on the sidebar is worth thinking about. This way, you persist the only the normal size in storage and avoid creating two storages (in the program) for scaled-down size and normal size. I just hope this thought isn't bent somewhere. |
Client-side pagination is a great idea, considering UI, what are your thoughts as regards say button placements? Pre-processing, that didn't cross my mind, I'll note that down, Thank you! Correct, I must've used the thumbnail as I executed the rendered image placement function alongside my filter for thumbnails. Noted Thanks a lot @jywarren |
Hmm, interesting. Yes, I mean we kind of managed to avoid storing more info about the image because we just used the displayed image in HTML itself to transfer the URL to Leaflet: Leaflet.DistortableImage/examples/js/archive.js Lines 122 to 128 in 208ed4c
We could:
What do you think? Regarding pagination... I'm not sure. Maybe we need the image list to scroll by itself so that the top of the sidebar remains visible... and then we can show something like gmail? But perhaps we should move this whole pagination discussion to its own issue so we don't fill up this comment thread. Would that be OK? |
Thanks for your feedback on this, from my current implementation, it is as you say, a single size is created and when placed on the tile layer, it takes its actual size. I believe we're on the same page, but I would give it some thought and maybe call on you for more insight @segun-codes |
Alright @jywarren
Alright, I will create a separate issue regarding that and ping you, we can also have more discussions on it. |
In 2) I meant instead extending the idea of storing the second url in the same html element by adding a custom attribute. Custom attributes I believe are supposed to start with |
@jywarren Alright, I believe I understand what you mean here. Thank you! |
Okay. |
Currently, the images are all fetched from archive.org and displayed in the sidebar as seen below:
In reference to issue #998 and task 1 of my proposal.
I proposed steps to begin to address this issue:
The text was updated successfully, but these errors were encountered: