-
Notifications
You must be signed in to change notification settings - Fork 24
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
[WIP] Seamless layout for pictures #17
Conversation
I think this looks very cool and a lot better. @icewind1991 @jancborchardt What do you think? |
… slideshow and fixes last row of images not showing.
@owncloud/designers @jancborchardt @tanghus I'd love to get some feedback before I start working on the public part :) |
Hmm, having a bit of trouble loading the app:
The keyword here being Edit: Wrong branch in core :P |
After checking out the proper branch in core it works great 😉 but I do get a weird blank in the middle of the page. Sometimes I get double folders when clicking from a sub-folder up to the parent using the breadcrumbs. And when loading the page there's a horizontal scroll bar. It disappears when resizing the window, so maybe trigger resize on page load? |
@tanghus thanks for your feedback! I'm not sure what causes the blank space in the middle of the page. Could you please send me the generated HTML? I suppose the duplicate images you got where only related to sub-folders? I do somehow need to filter out pictures that are already on their way from server to client but belong to the previous view. I do filter out some outdated pictures here https://github.com/owncloud/gallery/pull/17/files#diff-721c4fdccbf9e7c9a389daf09b558bfcR165 but that does not work for duplicates or sub-folder images... |
It was in the root folder, and actually both folders and images were doubled. I'll see if I can find a way to reproduce it. |
@tanghus can you check if the thumbnail does exist? I seems to be the only image with JPEG extension. |
@jbtbnl The thumbnail is there. It looks like somehow it creates a double entry for that image. One without a thumbnail, one with: <a class="image" data-path="tanghus/Images/Do not look behind you.jpeg" href="/index.php/apps/gallery/ajax/image.php?file=tanghus%2FImages%2FDo%20not%20look%20behind%20you.jpeg" style="height: 196.1px; width: 253.6px;">
<label> </label>
</a>
<a class="image" data-path="tanghus/Images/Do not look behind you.jpeg" href="/index.php/apps/gallery/ajax/image.php?file=tanghus%2FImages%2FDo%20not%20look%20behind%20you.jpeg" style="height: 196.1px; width: 253.6px;">
<img src="/index.php/apps/gallery/ajax/thumbnail.php?file=tanghus%2FImages%2FDo%20not%20look%20behind%20you.jpeg" style="height: 196.1px; width: 253.6px;">
<label> </label>
</a> |
OT, but maybe this PR in core is relevant for Pictures app? owncloud/core#6692 |
Woah, nice! Good to get a cool layout for the pictures app. (Also see owncloud-archive/apps#1527 ;) @owncloud/designers we need to test it on different devices to make sure it works well on mobile as well. |
(Also cc @xMartin and @anagromataf because they’ll like the new layout. ;) |
@jancborchardt I definitely need to spend some time on this. Maybe as inspiration my hack during the AHT: http://pina.delphinus.uberspace.de |
@anagromataf yup, check out the above screenshots and this code. :) Looks very similar to your layout / to the Flickr layout. |
I already saw it. Looks great. |
looks very good. thanks @jbtbnl |
Some Feedback:
What do you think @jbtbnl? Awesome work on it in general! |
@jancborchardt I agree with you on all points, although we should take a closer look at the margin of 5px since it will make pictures with a lot of white look ugly. Maybe introduce a subtle border? @jancborchardt I hope that someone will pick up owncloud/core#7881 since it could really improve the speed of the seamless gallery and it could enable the app to beforehand decide what size of the image should be downloaded, leading to lower bandwidth usage on mobile phones. Maybe you'd like to stress the importance of the feature there ;) |
@jbtbnl that touches a point I wanted to mention, but removed because I thought it would be too much: We should probably make the background dark instead of light to distract less from the pictures. Most photo viewers or picture management software has a dark background so it’s less jarring. It’s already like that on the public share (although we probably need to change the color slightly because it conflicts with the dark app list which has a slight blue hue.) What do you think? |
@jancborchardt I quite like the solution in Google+, they have a slightly transparent 1px border that overlaps with the outer pixels of the image. Therefore the border always darkens the outline of the picture a bit, being invisible at normal pictures but resulting in a nice outline for white edges. Google+ has a weird solution with div's surrounding the image, probably because they try to support every browser possible. A nice CSS solution would be:
|
I think they're just trying to obfuscate the markup as much as possible. Have you ever tried to inspect Gmail? It's so fugly you won't believe it :D The opposite of semantic markup. |
I've started implementing infinite scroll for the gallery to properly handle loading of large albums here which also uses seamless layout since the row based loading method made implementing seamless easy |
@icewind1991 Nice. Would this also fix the problem of the slow performance with a huge number of pictures? Someone mentioned that we use a huge json ajax response for all pictures at the moment |
That solves the issue of the gallery loading a huge numbers of thumbnails at once when opening a large album, listing images is still done in one request for now (although I did reduce the size of the ajax response by about 5 times earlier) |
@icewind1991 nice! But that’s one huge commit ;) Shouldn’t we tackle layout and loading separately? |
Both loading and layout require splitting the images into rows. With lazy loading already generating the rows showing them in a seamless layout is only a little bit of work. |
@icewind1991 so, you incorporated this code in your loading fixes? Do we need this pull request still then? (Also, can you please link the pull request?) |
The functionality of this PR is included in the loading fixes, there isn't a PR for it yet (displaying shared pictures needs to be implemented first) but the code can be found here: https://github.com/owncloud/gallery/tree/infinite-scroll |
@icewind1991 can you open a Work-In-Progress PR for it so everyone knows the state of it? |
And then I guess we could close this one if @jbtbnl’s commits are in your branch? |
Refs owncloud/gallery#5
TODO list:
CC @owncloud/designers