android icon indicating copy to clipboard operation
android copied to clipboard

Show thumbnails for pictures

Open mbiebl opened this issue 13 years ago • 56 comments

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.

mbiebl avatar Nov 29 '13 12:11 mbiebl

Yes, that would be really useful to know which picture is which!

jancborchardt avatar Feb 19 '14 13:02 jancborchardt

Cool idea.

  • Do we have a thumbnails API in the server side?
  • Should we generate local thumbnail for already downloaded images?

davivel avatar Mar 12 '14 17:03 davivel

@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?

jancborchardt avatar Mar 12 '14 23:03 jancborchardt

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?

DeepDiver1975 avatar Mar 13 '14 06:03 DeepDiver1975

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.

davivel avatar Mar 13 '14 15:03 davivel

Hint: we have a customer with his own mobile apps and they consume server side generated thumnbails

DeepDiver1975 avatar Mar 13 '14 15:03 DeepDiver1975

@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)

jancborchardt avatar May 23 '14 10:05 jancborchardt

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.

joeplus avatar Jun 04 '14 12:06 joeplus

We don't have an estimation to release this yet.

davivel avatar Jun 05 '14 07:06 davivel

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)

tobiasKaminsky avatar Aug 02 '14 10:08 tobiasKaminsky

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?

davivel avatar Aug 04 '14 07:08 davivel

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?

DeepDiver1975 avatar Aug 04 '14 07:08 DeepDiver1975

Yeah, I would also think it makes more sense to compute the thumbnails on the client.

jancborchardt avatar Aug 04 '14 08:08 jancborchardt

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.

joeplus avatar Aug 04 '14 08:08 joeplus

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.

davivel avatar Aug 04 '14 08:08 davivel

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.

jancborchardt avatar Aug 04 '14 08:08 jancborchardt

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...

tobiasKaminsky avatar Aug 04 '14 08:08 tobiasKaminsky

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

apramhaas avatar Aug 04 '14 18:08 apramhaas

@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.

jancborchardt avatar Aug 04 '14 18:08 jancborchardt

@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 😊

joeplus avatar Aug 04 '14 18:08 joeplus