Skip to content
This repository has been archived by the owner on Jun 19, 2023. It is now read-only.

thumbnails for image formats (jpg, png...) for downloaded files #149

Closed
olivtt opened this issue Dec 14, 2013 · 15 comments
Closed

thumbnails for image formats (jpg, png...) for downloaded files #149

olivtt opened this issue Dec 14, 2013 · 15 comments

Comments

@olivtt
Copy link

olivtt commented Dec 14, 2013

I think it would be fine to have a thumbnails for jpg, png...files
This feature is implemented in Dropbox. for example et I miss it in owncloud on ios.
thanks

@javiergonzper
Copy link
Contributor

Hi olivtt,

Right now it is not possible 😢.
On ownCloud 6 the thumbails appear on the Web but the API where the mobile devices connect to interact with the sever does not have thumbails yet.
The idea is provide on the API a way to read the thumbails but I do not know when but I hope soon because it is something very useful and cool.

@jancborchardt
Copy link
Member

This would be very cool, lots of Android users want it too, see owncloud/android#317

@eliburke
Copy link

FYI you can access image and file previews through the URL [server]/index.php/core/preview.png on the newest owncloud server release. It needs url parameters to tell it the image and dimensions and if you want aspect ratio preserved. The file path is relative to the webdav directory, so if you use the OCFileDto information you will have to strip off part of the path.
NSDictionary * parameters = @{@"file" : remotePath,
//@"a" : 1,
@"x" : @128,
@"y" : @128};
I have a PR open though I don't know if it will be accepted. The downloadPath api in OCWebDav needs to expose the parameters dictionary to outside control, which breaks the API. You can see the details here: owncloud/ios-library#64

Edit: Owncloud 7.0.3 has added an official API for thumbnails:

https://github.com/owncloud/core/blob/f8421958b3d06379c9dbfec49a16cf072dff7591/apps/files/appinfo/routes.php#L12
=> index.php/apps/files//api/v1/thumbnail/{x}/{y}/{file}

@rperezb rperezb changed the title thumbnails for image formats (jpg, png...) thumbnails for image formats (jpg, png...) for downloaded files Nov 21, 2014
@rperezb
Copy link

rperezb commented Nov 21, 2014

We will distinguish you different situations, either the files are downloaded to the device or not.
In this issue, we will include thumbnails just for those downloaded files.
NOTE:
From our experience with the Android app, it´s important to check extension such as tiff

ggdiez added a commit that referenced this issue Nov 27, 2014
@nasli nasli removed the Junior Job label Dec 31, 2015
@nasli nasli added this to the 3.4.7-current milestone Dec 31, 2015
@nasli
Copy link
Contributor

nasli commented Dec 31, 2015

This feature it is right now under QA process and will be within next release 3.4.7.

@nasli nasli closed this as completed Dec 31, 2015
@rperezb
Copy link

rperezb commented Jan 12, 2016

Fixed via: #549

@rperezb
Copy link

rperezb commented Jan 12, 2016

@carlaschroder new feature for the iOS app

@carlaschroder
Copy link
Contributor

\o/

@carlaschroder
Copy link
Contributor

@rperezb What is the release date?

@jancborchardt
Copy link
Member

Yooooo finally! Nice work! :)

@rperezb
Copy link

rperezb commented Jan 12, 2016

We haven't decided a release date yet

cc @MTRichards

@MTRichards
Copy link

More as soon as we look at the backlog / review what is complete / schedule a release based on the best timing.

@TylerTemp
Copy link

Hi, what about leave this issue open till release to app store?

@rperezb
Copy link

rperezb commented Jan 23, 2018

@jesmrec what do you think?

@jesmrec
Copy link
Contributor

jesmrec commented Jan 23, 2018

@TylerTemp the release is already done, that is an old conversation. Currently the iOS app supports thumbnails for both formats, regardless the pic is donwloaded or not.

We have opened an issue in core for thumbnails in servers with OAuth2 auth, it you want to track that problem or you are affected: owncloud/core#29914

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests