Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to the Power Users community on Codidact!

Power Users is a Q&A site for questions about the usage of computer software and hardware. We are still a small site and would like to grow, so please consider joining our community. We are looking forward to your questions and answers; they are the building blocks of a repository of knowledge we are building together.

Comments on How to dye all elements of an image (besides the transparent background) White?

Post

How to dye all elements of an image (besides the transparent background) White?

+2
−0

I have a transparent-backgrounded colorful raster-image (.png).

I want everything in the image to just become White (besides the background, which should stay transparent).

Is there any single action to do that?

In "single action" I mean that I don't want to check elements with a "magic wand" and dye them White, rather, everything which isn't the background would just become White in one go.

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.
Why should this post be closed?

1 comment thread

How about copying the alpha channel / transparency mask? (2 comments)
How about copying the alpha channel / transparency mask?
elgonzo‭ wrote almost 3 years ago · edited almost 3 years ago

I am not a Gimp user, but perhaps look into how you could copy the alpha channel (or transparency layer/mask, or whatever it might be called in Gimp) to a new image. The idea/rough process i am thinking of is this: Create a new image of the same size as your original png, and fill it entirely with white. Then, copy the alpha channel (transparency layer/mask) from the original png to the new file.

Still not a single action, but this would have the advantage of not requiring to fiddle around with color mixers or some color-related sliders, and it would give you full confidence and certainty of what the color of the new image actually will be (down to the actual and concrete RGB/HSL/HSV/... color value), simply because you directly and explicitely pick the concrete color the (new) image should be...

elgonzo‭ wrote almost 3 years ago · edited almost 3 years ago

If you must do this often, and you really must have a single action, you might wanto to think about whether it would be worth it for you to invest time into turning this process into a Gimp macro or Scheme script.

As often with these things, the (official) documentation is your best friend.