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

Colours swapped on VMWare #42

Closed
sibson opened this issue Apr 15, 2015 · 4 comments
Closed

Colours swapped on VMWare #42

sibson opened this issue Apr 15, 2015 · 4 comments

Comments

@sibson
Copy link
Owner

sibson commented Apr 15, 2015

I'm running vncdo on a Linux client, and capturing images from a remote host, and it looks like a pixel encoding is being missed/ignored somewhere, with the result being that the captured image has the Red and Blue channels swapped. Looks like a RGB vs BGR issue:

vncdo is expecting RGB but it looks like we're getting BGR. A similar issue, novnc/noVNC#70

This is the code the needs to be investigated.
https://github.com/sibson/vncdotool/blob/master/vncdotool/client.py#L346
https://github.com/sibson/vncdotool/blob/master/vncdotool/client.py#L369

@sibson
Copy link
Owner Author

sibson commented Apr 15, 2015

ServerInit contains format info, are we overwriting it? Is VMWare ignoring our setPixelFormat?

https://github.com/sibson/vncdotool/blob/master/vncdotool/rfb.py#L196

@inargroup
Copy link

The capture with the ESXi VNC server worked fine for me with this small modification to your code
(BGRX instead of RGBX on L369)
https://github.com/sibson/vncdotool/pull/43/files

@agfor
Copy link
Contributor

agfor commented Jan 3, 2018

I ran into this issue with VMWare Fusion 8.

@sibson
Copy link
Owner Author

sibson commented Jan 26, 2018

Likely fixed by #122, please re-open if that isn't the case

@sibson sibson closed this as completed Jan 26, 2018
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

3 participants