Bug 398226 - Failed to render png
Summary: Failed to render png
Status: RESOLVED NOT A BUG
Alias: None
Product: gwenview
Classification: Applications
Component: general (other bugs)
Version First Reported In: 18.08.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-04 07:30 UTC by wondertx
Modified: 2018-09-05 06:17 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Gwenview's rendering (205.74 KB, image/png)
2018-09-04 07:30 UTC, wondertx
Details
Okular's rendering (158.63 KB, image/png)
2018-09-04 07:31 UTC, wondertx
Details
Background color adjusted (186.37 KB, image/png)
2018-09-05 03:14 UTC, wondertx
Details

Note You need to log in before you can comment on or make changes to this bug.
Description wondertx 2018-09-04 07:30:27 UTC
Created attachment 114766 [details]
Gwenview's rendering

The same PNG file was rendered quite differently on Gwenview and Okular. See the attachment for detailes
Comment 1 wondertx 2018-09-04 07:31:58 UTC
Created attachment 114767 [details]
Okular's rendering
Comment 2 Peter Mühlenpfordt 2018-09-04 09:53:18 UTC
Looks like a transparent PNG for which Okular shows a white and Gwenview a dark background.
Maybe Settings > Configure Gwenview > Background color helps?
Comment 3 Nate Graham 2018-09-04 19:10:47 UTC
I don't think this is a bug; rather, the PNG has transparency and Gwenview has multiple options that Okular doesn't when it comes to how to render PNGs with transparency.

As Peter says, Settings > Configure Gwenview > Background color will give you all the options you could ever want for how to render the transparent parts--including choosing the same bright white color that Okular uses.
Comment 4 wondertx 2018-09-05 02:26:51 UTC
Yes, I can adjust the background color to make the PNG file seems OK. But why the default settings use such a dark background. I tested the same file on Mac and Windows but did not anticipate that it was due to background color.
Comment 5 Nate Graham 2018-09-05 02:42:24 UTC
The default setting is to use the same color for transparency as the rest of the background, which I think makes a certain amount of sense. For this particular image, I'm guessing you would have liked the previous default setting--which was a checkerboard pattern--even less. :)
Comment 6 wondertx 2018-09-05 03:14:35 UTC
Created attachment 114785 [details]
Background color adjusted

Do you mean the background color can adjust automatically? I slide the button to the right. Now the PNG looks good
Comment 7 Nate Graham 2018-09-05 03:21:11 UTC
That's one way. Another way is to go to the Image View tab and change the background type there.
Comment 8 wondertx 2018-09-05 06:17:48 UTC
Thanks! Got it. Maybe the default settings should use a less tricky way like surrounding color with a light color. Firefox, Mac and Windows image viewer takes this way.