nextcloud / gallery

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

Scale up really small images for the album presentation #83

Open oparoz opened 8 years ago

oparoz commented 8 years ago

From @oparoz on September 24, 2015 22:17

Small GIFs look tiny in the albums. That's because we ask core for a preview with no aspect ratio and no scaling, so the small image is pasted in the middle of a canvas of the asked dimensions. It looks even worse on high DPI screens since you could have a 50x50 image pasted on a 600x600 transparent background, which is then scaled down to 200x200.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Copied from original issue: owncloud/gallery#381

oparoz commented 8 years ago

Tested by asking Preview for images which keep the aspect ratio for the albums and that works for most cases, but not for panoramic pictures, which already have issues in the photowall itself. So maybe one day that special case could be fixed in `core, killing two birds with one stone.

oparoz commented 8 years ago

Scaling up only works on old screens. The quarters of the albums get nicely filled, small GIFs look better and panoramic pictures only look slightly worse, but on HiDPI screens, there is no change...

Note to self: maybe I've forgotten to multiply the scaling factor by the pixel ratio :pensive: