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

Wrong colors in XPM image #351

Open
JamesR98 opened this issue Oct 16, 2024 · 0 comments
Open

Wrong colors in XPM image #351

JamesR98 opened this issue Oct 16, 2024 · 0 comments

Comments

@JamesR98
Copy link

Expected behaviour

Displays the correct colors in an XPM file using x11 colornames.

See the following for more information:
https://www.imagemagick.org/Usage/color_basics/#color_conflicts
https://www.imagemagick.org/discourse-server/viewtopic.php?t=23138
https://imagemagick.org/discourse-server/viewtopic.php?t=16681

Actual behaviour

Uses some other colornames.

Steps to reproduce the behaviour

You can see this here:

echo 'static char *f3[] = {"1 1 1 1 "," c #00FF00"," ";};' | magick xpm:- -resize 100x100 /tmp/00ff00.xpm; sed -n 5p /tmp/00ff00.xpm; magick /tmp/00ff00.xpm -define histogram:unique-colors=true -format %c histogram:info:-; eom /tmp/00ff00.xpm & display /tmp/00ff00.xpm & sed -n 5p /tmp/00ff00.xpm

this does

echo 1x1 #00ff00 pixel xpm | resize to 100px so you can see it;
print the color definition of the xpm file (imagemagick converted #00ff00 to green);
print the colors in the image according to imagemagick (#00FF00)
open the image in eom (displays wrong color) and imagemagick's display (displays correct color, #00ff00).

MATE general version

1.26.1

Package version

eom-1.26.1-3.fc39.x86_64

Linux Distribution

Fedora 39

Link to bugreport of your Distribution (requirement)

Sorry :(

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

No branches or pull requests

1 participant