Here's another fix for the bug, this time against the unstable
version.
Only in netpbm-free-10.0.fixed/: lib
diff -U3 -r netpbm-free-10.0/pnm/giftopnm.c
netpbm-free-10.0.fixed/pnm/giftopnm.c
--- netpbm-free-10.0/pnm/giftopnm.c 2003-08-15 14:30:17.0 +
+++ netpbm-free-10.0.fixed/pnm
OK. It turns out that the incorrect pixel wasn't black, it was
transparent.
The bug occurs when an alpha-map file specifying an entirely opaque
image is used. If -force is not specified, pnmtopng converts from an
alpha mask to a transparency index, using a pixel generated from
uninitialised data o
Package: netpbm
Version: 2:10.0-8
Severity: normal
The following sequence of commands should result in an identical bitmap,
but does not. It has a small vertical black bar in it.
---
pngtopnm yellow_red_gradient.png > x.pnm
pngtopnm -alpha yellow_red_gradient.png > y.pnm
pnmtopng -alpha y.pnm x.p
3 matches
Mail list logo