-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Show thumbnails for pictures #317
Comments
Yes, that would be really useful to know which picture is which! |
Cool idea.
|
@DeepDiver1975 @georgehrke do we have a thumbnails API ^? Should we generate thumbnails for already downloaded images – good question. Is it performant, and does it make sense when we have a thumbnails API? |
We have a thumbnail api aka url to be called. in addition we need to adjust the fall back behavior. There is no need to return the mimeicons - the clients have device specific mimeicons which you want to use. @MTRichards prio? Oc7? |
About generating locally, the question of performance should be tested, can't be guessed in advance. Anyway, we can expect a great variation depending of the device and the resolution of the downloaded images. The only reason to avoid using the thumbnail API would be lower the user of network. |
Hint: we have a customer with his own mobile apps and they consume server side generated thumnbails |
@rperezb @MTRichards do we have this on the roadmap? Currently the app is basically useless for a folder with pictures. (Same goes for the iOS app.) Also see #239 (gallery view) |
Just joining the conversation but apparently there are a lot of people interested in this (see #239, #429 and others for iOS) and others issues that have been closed already. I just wanted to know if that feature has been put on a roadmap or assigned to somebody? It would be a great asset for owncloud also in comparison to NAS manufacturers who have this feature in there apps already or implementing it right now. Would be good to even the playground with dropbox and others as well. |
We don't have an estimation to release this yet. |
Hello, My first approach would be to add the thumbnail in the file list: As far as I have read there should be a thumbnail API in oC6. But I have not found any documentation how to use/access it. Can someone point it to me? Lader adding a more "flickr" like system. |
HI, @tobiasKaminsky. Feel free to go for it, nobody is working in this feature right now. I'd recommend you go step by step. Collection all the ideas in a single point may easily finish in implementing nothing. About the thumbnail API... I do not know what is its state now. @DeepDiver1975 , was it finally included in OC7? |
Generally speaking: thumbnailing has been added with OC6 - but there is still no public http api to be used by the mobile clients. In addition: with respect to the processing power of modern mobile devices: Does it really make sense to load the thumbnails from the server? |
Yeah, I would also think it makes more sense to compute the thumbnails on the client. |
There is only one slight problem in my opinion with generating the thumbs on the device, bandwith and data traffic, if you are not on a wifi network. Having 5mb pictures, e.g. for photographers with high res jpgs, will Iead to very slow load times and an excessive use of data traffic I guess. |
Generate thumbnails in the device is a good idea for pictures that are already downloaded. But the mobile apps do not download the content of files directly. As @joeplus notices, there is data traffic cost to take into account. |
True. So maybe we can start by generating thumbnails on the device for those images which are already downloaded? Would already be a big improvement. |
Then I will implement this: Regarding API: https://play.google.com/store/apps/details?id=md.steuer.mobile.owncloud_gallery.free This app seems to use the preview function. Although it does not work in my case... |
I would also suggest to generate the thumbnails on the server side.
Furthermore I will suggest to automatically generate a thumbnail on the server whenever a picture in a supported format is uploaded to the repository and store it with the original picture (maybe 75x75 and 800x600)
|
@unclejamal3000 – as @DeepDiver1975 said: The functionality is in place, but the API is missing so far. So we have to start with generating thumbnails of the files which are available on the device. |
@tobiasKaminsky: I was about to suggest that app as well. It worked for me with the owncloud demo server. It would be a great add-on and I am willing to help if you give me some pointers on what to do 😊 |
Ok. What do you suggest how the change between the "file detail" and the "image" view should be:
Also it should be discussed how other file types should be displayed and if it is necessary to put all features (like selecting, etc.) in this view... |
Looks good already! I think for now it would be good and easy to let the user choose manually. For the future and please don't shoot me, I think it would be good to look at the possibility to separate file and photo views. For example having a slider menu with different list items like in the OC web-interface, tabs or even different apps. Regarding the other filetypes, once the server side thumbnails are in place it would be possible to show a thumbnail for them as well. As for now I think it would make sense to have a placeholder with the same dimensions as the thumbnails saying "Thumbnail not available for this filetype" or showing it through an icon. What do you think? |
@tobiasKaminsky ohh, that looks cool! One improvement would be to show more images in a row, say 3 or 4 (similar to the iOS photo screenshot in the issue you linked). Otherwise you need to scroll a lot in this view. @joeplus for ownCloud we aim to do things with good design and as little settings as possible, only where needed. Hence it would make most sense to automatically use this thumbnail view for folders where there are only images (or, say 90% of the elements are images). So @tobiasKaminsky the threshold decision you mention is best – we just have to decide on (and then maybe refine) the threshold. |
@tobiasKaminsky you’re very welcome in our #owncloud-android IRC channel by the way! In case you have any dev questions, someone who can help you is probably there as well. |
@tobiasKaminsky , did you already generate thumbnails for the list view? Why not merging that yet, instead of waiting for something more complex? Small PRs are easier to test and review than big ones. About the grid layout - I would really like we calrifiy about how to integrate that in the app flow. If I understood well, you mean replacing the regular list view with a grid of images in case that most of the files in a folder are images. That could make really easy to "lose the track" of files that are not images in those folders. Even showing the file icons for those files, we will not see their names. What I really miss now in the app is the lateral sliding panel. An option there to swap between list and grid view seems better IMHO. |
@tobiasKaminsky right – a good first step would be to just add thumbnails to the normal list view. Just like it is in the web interface. |
I have created a pull request: |
Does your api use the same thumbnails as preview.png or does it generate new ones? |
It is using \OC\Preview(). |
I have them in /owncloud-data/user/thumbnails. I have used preview.png link as I pasted above to get images from server. I used basic authorization (username and password) and started loading images with AsyncTask. I does load images but there are few problems i have to debug. The problem is i make a connection and authorization for each image I want to download. That needs to be fixed. |
Therefore I use client.executeMethod(new GetMethod(url...) Is your authorization working with https? |
@Skymania: My API is currently not working any longer after my upgrade to OC7. |
Pull request for route for thumbnail generation is now online. |
In my route i am using OC\Preview which seems to be the same as preview.png uses. |
In order to keep things clearer I have summarized the ideas about the gallery view in #239 |
Great job tobias. Im currenty afk so i'll have a look when im home. |
@tobiasKaminsky , could you explain a bit more about the "new external API"? Are you accessing the thumbnails in the server side through a non-standard entry point, then? What will be the behaviour of the app with a regular ownCloud server? |
The OCS route system is used on the server side: /ocs/v1.php/thumbnail |
@davivel owncloud/core#11009 is the PullRequest for the external API. |
The external API is now included in master-branch of core. |
@tobiasKaminsky , you are making it !!! 👍 👍 👍 For working in the access to remote thumbnails I suggest to create a new branch from thumbnails_for_downloaded_images . But please, don't add new work directly on it; now it's in QA process and should be blocked, unless bugs are reported on it We would like to ship the feature in its current state for the next release. |
Hey, people. Thanks to @tobiasKaminsky , we have thumbnails for downloaded images now, and we'll have remote thumbnails starting with OC8. Great! (Now merged into 'develop', available from next release, probable 1.6.2). |
Is there anything I need to to enable the thumbnails? I do have OC8.1 and the latest client release |
@kugel- There is no need to activate anything - normally. Edit: it is better to leave this closed and please open a new issue. |
Am 10. Juli 2015 18:18:57 MESZ, schrieb tobiasKaminsky notifications@github.com:
Yes, but not in the Android client (v1.7.1) |
Ah :/ Can you try it with the demo account? |
Am 10. Juli 2015 18:28:12 MESZ, schrieb tobiasKaminsky notifications@github.com:
Okay, I'll take it back, I do have thumbnails now. It seems my server decided to delete it's thumbnails during the upgrade, and regeneration takes a while (the server is slow, a banana pi board) |
Great to hear :) |
In folder view, it would be nice if the android apps shows thumbnails for pictures much like it is done in OC 6.0 now.
The text was updated successfully, but these errors were encountered: