Show thumbnails for pictures
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.
Yes, that would be really useful to know which picture is which!
Cool idea.
- Do we have a thumbnails API in the server side?
- Should we generate local thumbnail for already downloaded images?
@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. But before integrating it into the clients I'd prefer to have a more detailed look. E.g. we have different urls for public sharing, versions etc.
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 https://github.com/owncloud/android/issues/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, I am interested in taking over this part. Or is someone else already programming it?
My first approach would be to add the thumbnail in the file list: Dynamically load the preview for the files if they are visible
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. Maybe we/I should collect all ideas in the same place so we can discuss the further steps and wishes before programming it. (Related to #239 #429)
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: Images on the devices: Thumbnails generated directly on the phone Images not yet downloaded: Public thumbnail API is necessary.
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. Advantages:
- Less data traffic on the mobile device
- Faster picture download
- Less computing time on the mobile device -> increased battery lifetime
- Typically the server has more cpu power than the mobile device for thumbnail generation (depends on users)
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)
- Thumbnails only consume a few kB of storage space
- The thumbnails are already available when you need it -> reduce loading time when you browse through a directory with many pictures.
- Eliminate the server as bottleneck if there is a small appliance with little computing power in use (e.g. Rasbperry Pi)
- Better scalability if you host many users on the same machine
@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 😊