-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatically select an appropriate background colour based on the image's luminance #84
Comments
Thanks! That's detected as a very dark picture and a white background is automatically selected when in full screen. |
@oparoz I don’t know about this. The dark background is simply standard for image viewers. It would be incredibly janky if the background would change when switching images. This seems like overthinking it. We shouldn’t have a background switcher, nor have it switch automatically. The only thing we wanted to solve is the issue for transparent images, and we kinda did that. |
Well, the problem is that the white background + border isn't working well for pictures, so we need to find a way to only turn it on only for dark, transparent images and they're not necessarily all in the same folder or one after the other. |
@oparoz ah ok – you were talking about the background of the image – not of the whole overlay? In that case sorry. :) |
Yeah, I've tried to use the word viewport to make the distinction between the whole background and the image's background, but I'm happy to take suggestions on how to word it better :) |
Maybe I should start a bountysource funding campaign... |
This issue was moved to nextcloud/gallery#22 |
Current situation
The problem
This is not ideal as currently users have to manually adjust the background+border if they're viewing very bright pictures and the white border doesn't look very nice with dark pictures with no transparency.
It gets worse in slideshow mode as you have to adjust the background if reaching a picture which can't be properly seen with the currently selected background.
Solution
IE8 is not supported
Next steps
Feasibility study
I did some experiments both in PHP and JS and it's doable.
Background switcher should stay imho, at least as an option.
Development
The amount of work required is estimated at 2 days, including extensive testing
Implementation details
QA
If the accuracy level reaches 90%, the toggle button (#40) could be removed
@anarcat - Do you have some sample pictures? Would auto white/black be OK?
@jancborchardt - This would solve the white border issues when going fullscreen and should improve usability
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: