nextcloud / gallery

DEPRECATED Gallery app was replaced by Photos
https://github.com/nextcloud/photos
GNU Affero General Public License v3.0
109 stars 58 forks source link

Gallery image quality is bad #444

Open amityweb opened 6 years ago

amityweb commented 6 years ago

I switch a folder to gallery view, see all the thumbnails, then click an image to open it up. Its small on my Macbook. So using the touchpad (as there is no zoom icon) I expand the image to zoom in. The image quality is terrible. The uploaded image should be 1512px, but the one in gallery is 558px wide.

How do I have gallery show the original image? We want to use gallery to showcase some designs to customers... we cant have pixelated/blurry designs, we need to show originals.

Thanks!

amityweb commented 6 years ago

The image url has preview in it, something to do with this? /index.php/apps/gallery/preview/2891?c=d40be047c53b2d2d412948e932d46b5f&width=1300&height=1300&requesttoken=CEBZFgUPKQIAAjMORQETFwscCBgdawcoB0QEImVyLBI%3D%3AG06nr8axyjAg1DyY8%2FQO6YAJJ1cvRBFkjro6uoWGjLI%3D

I dont want preview, I would like the full image. Thanks.

oparoz commented 6 years ago

Full images are only available via download in order to not use too much bandwidth. It would be great if you could submit a pull request adding an option to switch between preview and original mode so that people can choose how their Gallery should behave.

amityweb commented 6 years ago

But that should be my choice not the system? I am using a gallery to showcase designs we did, and they are all blurry/pixelated.

If I wanted to send low res images I can just upload low res ones.

They are for a specific customer, not any old person who wants to use their phone. The customer wont even be using their phone as they are desktop website designs.

I have instead created them in Smartslider 3 slideshow as OwnCloud is not suitable due to this issue, which is a real shame. Would be so much easier if I could just show the actual images in OwnCloud as its a simple drag and drop upload to create the gallery.

I dont have a pull request because I cant find in the code where this is set. I thought I found some max size or thumb size image code but changing it had no effect.

ghost commented 6 years ago

I just uploaded a bunch of photos to my Nextcloud (13.0.4). And when I click on them they are displayed at 50% of their width. Why?

The admin manual says the default maximum width in pixels of previews is 4096px by now and the max file size is 50MB. I can live with that. And I gather that Nextcloud's default gallery/slideshow/photo display app shows preview images, not originals. Ok.

But why is a 1024px wide (preview) image displayed at 50% of its width in the slideshow?

Is there maybe some setting that will make the image display at 100% or zoom/shrink to fit the available screen space? I'm sorry I don't understand why images are displayed the way are right now.

agafonovdmitry commented 5 years ago

Hi! Just found a way (for at least 13 version we use) to upgrade image quality. Add an app setting into database (default value is 90, which is not enough for some cases): insert into oc_appconfig values ('preview', 'jpeg_quality', 98); Or update if the record exists already. Clean preview folder, located at /data/appdata_XXXXXXXXX/preview. Expect up to double size of previews.

gmp216 commented 4 years ago

Old versions of Nextcloud used to do the right thing, which was show the picture that I uploaded. Now it is downscaled to some ridiculous degree, showing a postage-stamp sized image surrounded in the middle of a black screen. I uploaded the picture I wanted to see, nobody wants a patronizing attitude from their gallery software, that's why we are self-hosting and not using proprietary software. Please fix this or add an admin setting so people can set it to act like a proper image gallery. We are all paying for our own bandwidth so just let us use it please.