79611458

Date: 2025-05-07 21:59:10
Score: 0.5
Natty:
Report link

How about this:

convert input.png -colorspace rgb -fx 'if(u!=0 && u!=1, rgb(255,0,0), u)' output.png

This command preserves the black and white parts of the image and turns anything else red. This way, the red pixels can be seen in context.

Note: A solution using "global" operations like -negate, -opaque, etc. would be MUCH faster than applying a formula to every pixel. This command pegged my CPUs for about 10 minutes, but it worked!

Reasons:
  • Whitelisted phrase (-1): it worked
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Starts with a question (0.5): How
  • Low reputation (1):
Posted by: Steven S. Shrader