Having problems changing the brightness of B/W tiff.
Posted: 2008-01-22T17:34:56-07:00
With the image below, I can't seem to change the brightness. What I'm going for is a washed out '15' - i.e. one that not black/white, but gray/white. I don't want to use fill to change one color to another because I can't guarantee the colors will be black & white... they may be red/black, red/blue, whatever/whatever.
I've tried the following commands:
The image is at http://hero.com/~briank/misc/num.0015.tif if you can't view it in the browser.
Edited to add: The above image was created as a tiff with an alpha then I removed the alpha with imagemagick using the +matte command & inverted (also with image magick) it so now the 15 is black & background is white. I'm running Debian Linux with Version: ImageMagick 6.0.6 05/30/07 Q16 (which I believe is straight from the Debian Repository)
I've tried the following commands:
- convert /tmp/b/num.0015.tif -modulate 150 foo.tif
- composite -dissolve 50% /tmp/white.png /tmp/b/num.0011.tif foo.tif (all incarnations, i.e. order of args. "white.png" is an image of all white)
- convert /tmp/b/num.0015.tif -fill "rgb(50%,50%,49%)" -fuzz 5% -opaque "rgb(0,0,0)" foo.tif (this works, but locks in black & white - which is bad. Anecdote: this does not work if I use (50%,50%,50%), as opposed to (50%,50%,49%) - bug?)
The image is at http://hero.com/~briank/misc/num.0015.tif if you can't view it in the browser.
Edited to add: The above image was created as a tiff with an alpha then I removed the alpha with imagemagick using the +matte command & inverted (also with image magick) it so now the 15 is black & background is white. I'm running Debian Linux with Version: ImageMagick 6.0.6 05/30/07 Q16 (which I believe is straight from the Debian Repository)