Skip to content
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

Different color display in Sozi on Ubuntu #506

Open
albertheres opened this issue Feb 4, 2021 · 10 comments
Open

Different color display in Sozi on Ubuntu #506

albertheres opened this issue Feb 4, 2021 · 10 comments

Comments

@albertheres
Copy link

Colors in Inkscape are different displayed in Sozi.

I notice that a colors from my inkscape file are different displayed in Sozi. You can see it on this screen capture.

  • I have tested it on Ubuntu 64bit 20.04 with Sozi 20.05 and 20.11 as well. But no difference.
  • When I use Windows 10 64bit the colors are equal in Inkscape an Sozi. So it seems a Linux issue.

Assumed this is related to color profiles. But I don't know how to solve it.

@aumouvantsillage
Copy link
Collaborator

Have you tried to open the SVG alone in a web browser?

Sozi is not supposed to alter the visual rendering of your documents.
At first sight, I would consider that this is an issue in Inkscape or in the rendering engine that Sozi uses.

@albertheres
Copy link
Author

Yes, I tried. The SVG is displayed equal in Inkscape and Firefox, but different in Sozi as you can see here.

Also the slider bar is not blue displayed, but purple as you can see here. This seems related

@albertheres
Copy link
Author

Just some additional info that I discovered:

  • SVG colors in Inkscape are right displayed
  • SVG colors in Firefox are right displayed
  • SVG colors in Sozi are wrong displayed (blue becomes purple)
  • Sozi.html colors in Firefox are right displayed
  • Sozi export to MP4 colors are wrong displayed (actually: wrong rendered)

This is a single screen capture with all samples included.

Hopefully there is a quick fix to solve this issue.

@aumouvantsillage
Copy link
Collaborator

Thanks for the additional info. This is very helpful.
I think that your problem is related to this issue in Electron

I will check whether the option --disable-color-correct-rendering works in the current version of Sozi.
If not, the only way to fix it consists in rebuilding Sozi against a fixed version of Electron.

@albertheres
Copy link
Author

My pleasure! Indeed that Electron issue seems related. Thanks for checking that option.

I have checked more colors (default inkscape swatches) and I notice that especially blue is affected as you can see here.

@aumouvantsillage
Copy link
Collaborator

I have added the "disable-color-correct-rendering" option.
However, since I cannot reproduce your problem, I am not sure that it is fixed.

You can try it by running this version for Linux x64

@albertheres
Copy link
Author

albertheres commented Feb 6, 2021

Thanks for you effort! unfortunately this does not solve the problem as you can see here

@albertheres
Copy link
Author

I solved the problem as you can see here!

The monitor color profile was the trick. I changed it from HP default to sRGB and the colors are displayed equally now in Inkscape and Sozi. Check this comment with more info.

@aumouvantsillage
Copy link
Collaborator

Great.
I would not consider it "solved" because I would expect Sozi to comply with any custom color profile.

@albertheres
Copy link
Author

Yes I agree with you. I have a workaround that solved the issue for me. But a global solution is better.

It is a conscious choice as you can read is the document.

Chrome will assume that the operating system settings for color management were set intentionally, and will respect those settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants