-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
transparent images displayed as black or unreadable #11418
Comments
note that this looks similar to #7148 but i believe it is a separate issue. |
Hi, have you tried to apply the fix here: This will be included in 7.0.3 |
i have tried. it doesn't fix the problem. maybe it will make the "preview is black" problem go away, but my main problem is to have a way to display the image properly in the main view, not the preview. and in here it doesn't work: the background is white or gray, but generally the image is unreadable. |
@anarcat are you still seeing this in 8.0.5 or 8.1 ? |
i can't unfortunately test this right now, as an upgrade is quite an enterprise. :) |
Regarding the Files app, it's still a problem. The same background is returned for all images, no image analysis is performed either in PHP or JS. The fullscreen problem has been solved and can be further improved via owncloud/gallery#84 |
@oparoz any update on this ? Is this still an issue ? |
@PVince81 - Not sure about the black thumbnails in Files as we would need a test file to be able to witness it, but as mentioned above, not analysis is performed on images and the background is set to white in Files, so any white image with a transparent background are invisible (other issue opened about that). Regarding the slideshow, it's all documented in owncloud/gallery. |
@anarcat can you share a test file ? |
Tested with https://commons.wikimedia.org/wiki/File:600_px_Transparent_flag.png in master -> works. Reproduced this in stable6. And checked also in stable8, where it is fixed -> close |
Steps to reproduce
Expected behaviour
The images should be generally visible, either on a grey or white background. Transparency should be detected and ideally, the color average of the picture should be evaluated to tell if the background should be dark or light.
Actual behaviour
In general, Owncloud doesn't deal very well with transparency in images it seems. First off, thumbnails aren't generated consistently:
The first image displays fine: no transparency. The second image is displayed with a black background, while the third and fourth are okay.
Yet, when displayed in fullscreen, things don't get much better. The first image displays fine again, but the last three similarly fail to display properly. They are displayed with a black background:
when i mouseover the image, i get a squared background:
but things are not much more readable.
this happens with the latter three images.
this is the equivalent crop of the image displayed in
eog
with a grey background, where it is actually readable:Could there at least be a configurable setting to change the background so transparent images can be displayed properly?
Server configuration
Operating system: Debian wheezy
Operating system: Debian stable "wheezy" 7.6
Web server: Apache 2.2.22
Database: Mysql 5.5
PHP version: PHP 5.4.4
ownCloud version: 6.0.2
Updated from an older ownCloud or fresh install: updated from 5.x
List of activated apps:
Activity
Bookmarks
Calendar
Contacts
Deleted files
Documents
First Run Wizard
Full Text Search
LDAP user and group backend
PDF Viewer
Pictures
Share Files
Tasks
Text Editor
Versions
Video Viewer
Mozilla Sync3rd Party
The content of config/config.php:
Are you using external storage, if yes which one: i don't believe so
Are you using encryption: HTTPS?
Client configuration
Browser: Version 37.0.2062.120 Debian jessie/sid (281580) (64-bit)
Similar results with Iceweasel 31.1.0.
Logs
Web server error log
Hitting the preview gives me:
ownCloud log (data/owncloud.log)
There are a metric ton of stuff in that log, and I don't feel comfortable posting it here. However I do see messages like this:
Browser log
What's a browser log exactly?
The text was updated successfully, but these errors were encountered: