Skip to content
This repository has been archived by the owner on Nov 1, 2020. It is now read-only.

Panorama pics don't look very good #19

Open
oparoz opened this issue Sep 4, 2016 · 12 comments
Open

Panorama pics don't look very good #19

oparoz opened this issue Sep 4, 2016 · 12 comments
Labels
1. to develop Accepted and waiting to be taken care of bug Something isn't working discussion Being discussed enhancement New feature or request

Comments

@oparoz
Copy link
Member

oparoz commented Sep 4, 2016

From @jospoortvliet on March 5, 2015 13:54

Hi,

Panorama images don't look good in GalleryPlus, neither as thumbnail nor when clicked. They seem to be rendered in very low quality. Not sure if this is on my side, but I do see it for all wide pics. They are shown really cool: width shows up nicely in the thumbnail view, the image view can zoom and scroll very well. Just rendered at a low resolution...

eight1

Otherwise, awesome work on GalleryPlus - just updated to oC 8.0.1 and a git checkout of the performance fixes branch. Haven't applied the performance patches to ownCloud, just using it this way - not a big problem as long as I don't go to the root. I have to navigate to a sub folder with images in the Files app and then switch to Gallery and all is well ;-)

Let's get this app merged back in core! That would really rock.

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

Copied from original issue: owncloud/gallery#61

@oparoz oparoz added 100 bug Something isn't working discussion Being discussed enhancement New feature or request labels Sep 4, 2016
@oparoz
Copy link
Member Author

oparoz commented Sep 4, 2016

Thanks for the report... and the kind words :). I can confirm the bug, it's clearly visible on the demo as well.
Preview in core can't handle wide pictures, it sends back messed up previews. I fix them for the square previews (albums containing wide pics should look normal), but didn't want to have to fix all of them as it doubles the processing time. Maybe I should...
And even though it's been mentioned several times in various tickets, I don't think it's even in the core tracker.

(I've just pushed the latest changes from master to performance-fixes, so that you can benefit from them as well)

@oparoz
Copy link
Member Author

oparoz commented Sep 4, 2016

OK, filed in core owncloud/core#14712

@oparoz
Copy link
Member Author

oparoz commented Sep 4, 2016

A big problem we'll be facing when this is fixed is that all these "bad" pictures will be stored in the cache as 400-200-with-aspect.png and there is currently no way to fix only select thumbnails without manually removing them.

@oparoz
Copy link
Member Author

oparoz commented Sep 4, 2016

So, I've had a look and for large previews, I've applied a quick fix which should help with most previews

@oparoz
Copy link
Member Author

oparoz commented Sep 4, 2016

For thumbnails, it's a bit more complicated.
We always ask for 400x200 pictures, so it's either

  • we stretch them to maybe 800x400 and crop them to 800x200, leading to blurry thumbnails or
  • we crop them to 400x200, but there is no way of telling they're panoramic.

The 3rd option is to ask for the image size in advance, but that's going to slow down operations as each image has to be tested even before we start showing anything.

@oparoz
Copy link
Member Author

oparoz commented Sep 4, 2016

From @jospoortvliet on March 6, 2015 13:17

Hmm, the crop is probably the best one. That is already wide, and it's less bad than blurry I think...

@oparoz
Copy link
Member Author

oparoz commented Sep 4, 2016

Let's see if other people want to chime in. It should be possible to fix wide images, but the Preview class doesn't make it easy as there isn't a way to invalidate a preview, so we have to generate a new one.

@oparoz
Copy link
Member Author

oparoz commented Sep 4, 2016

I've filed this in core to try and make it easier to alter previews quickly if we see that a preview could be problematic: owncloud/core#14739

@oparoz
Copy link
Member Author

oparoz commented Sep 4, 2016

From @jospoortvliet on March 6, 2015 23:52

@oparoz note that in my opinion - this isn't a huge issue. The crop is quite OK. Yes, yes, showing them fully is prettier, but it isn't worth a HUGE amount of work unless you feel like taking on the challenge :D

@oparoz
Copy link
Member Author

oparoz commented Sep 4, 2016

The problem is that it doesn't only affect panoramic pictures. Any picture with a height smaller than 200 will be stretched, so cropping works for pictures, but wouldn't look great for logos per example.

@oparoz
Copy link
Member Author

oparoz commented Sep 4, 2016

From @jospoortvliet on March 7, 2015 19:4

Ok, I understand. So no easy fix for this one...

@oparoz
Copy link
Member Author

oparoz commented Sep 4, 2016

Having this would help greatly owncloud/core#7881

@skjnldsv skjnldsv added 1. to develop Accepted and waiting to be taken care of and removed blocked by server labels Sep 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
1. to develop Accepted and waiting to be taken care of bug Something isn't working discussion Being discussed enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants