owncloud-archive / apps

Repo for ownCloud apps. Code here is work in progress and not intended for endusers
373 stars 336 forks source link

Pictures: Images should be scaled for the lightbox #1095

Open nicokaiser opened 11 years ago

nicokaiser commented 11 years ago

The lightbox in the pictures viewer delivers the original sized images in the fullscreen view. When a folder contains full-resolution DSLR JPEGs, these may be 7 MB or larger, which makes ownCloud very slow (and consumes lots of bandwidth).

gallery/ajax/image.php should scale (and cache) the images to e.g. 1024x1024 (configuration).

lupusmeatus commented 11 years ago

Yes, we really need some server-side scaling.

lupusmeatus commented 11 years ago

If a cache is implemented, please turn it off by default or implement some hard limit. OItherwise we will see many owncloud-sites, that stop working, because of missing disk-space. For some algorithms to implement this hard limit see http://en.wikipedia.org/wiki/Cache_algorithms

lupusmeatus commented 11 years ago

Maybe we should scale to more than one size, since the max-resolution differs so much between devices.

lupusmeatus commented 11 years ago

We could use the thumbnails (that are propably already in the browser-cache) to make the navigation-controls (in the single-image-view) respond quicker.

MorrisJobke commented 11 years ago

cc @icewind1991

skomorokh commented 11 years ago

Pretty much a required feature for use as a gallery. But sometimes you'll want to zoom in or grab a copy of the full image so it's important to provide a link back to the original.

As for running out of space, perhaps a cache expiration that removes the least recently used ones? You could set a max for the cache and it would prune to that or the remaiing quota, whatever is smaller. And try and free up space from the cache when the quota is hit. Something like that?

etiess commented 11 years ago

Hello,

I totally agree with this feature! It would be great. Is there any progress regarding it? Does it have something to do with https://github.com/owncloud/core/pull/4022 ?

Android app should benefit from that too (see https://github.com/owncloud/android/issues/59 ,https://github.com/owncloud/core/issues/86 and https://github.com/owncloud/android/issues/239)

Perhaps we could merge these topics into one single topic?

Thank you!

3slrb commented 9 years ago

+1 That would be great! Loading images in full size is a huge waste of traffic

didhavn commented 7 years ago

Hey all. I just wanted to ask if any of you know if there are some updates on that. A 2nd resized (cached) version of large images for gallery slideshow (and android App) would be a great feature and save a lot of traffic. Thanks!