https://bugzilla.novell.com/show_bug.cgi?id=225258 ------- Comment #1 from prusnak@novell.com 2006-12-06 02:43 MST ------- (In reply to comment #0)
# cat bla.pnm | pnmcrop -white | pnmtopng > bla.png works for me (white is not replaced with transparent)
# cat bla.pnm | pnmcrop -white | pnmtopng -transparent=rgb:f0/f0/f0 > bla.png pnmtopng: Unrecognized option: '-transparent=rgb:f0/f0/f0'
man page: pnmtopng [-verbose] [-downscale] [-interlace] [-alpha=file] [-transparent=[=]color] [...]
yes, manpages use '=' between options and parameters, programs do not, that is confusing to users
then i tried this: # cat bla.pnm | pnmcrop -white | pnmtopng -transparent rgb:f0/f0/f0 > bla.png and # cat bla.pnm | pnmcrop -white | pnmtopng -transparent "rgb:f0/f0/f0" > bla.png and # cat bla.pnm | pnmcrop -white | pnmtopng -transparent =red > bla.png
every time i get a png which hase transparent background instead of a white background.
first and second one are good behaviors: man page: -transparent=color .. If the color you specify is not present in the image, pnmtopng selects instead the color in the image that is closest to the one you specify. ... but third one is not: man page: .. However, if you prefix your color specification with '=', only the exact color you specify will be transparent. I will focus on this one ... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.