Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#20030 - [netpbm] pgmtopbm default dithering fails

Attached to Project: Arch Linux
Opened by John Carlyle-Clarke (johncc) - Wednesday, 30 June 2010, 15:16 GMT
Last edited by Eric Belanger (Snowman) - Saturday, 03 July 2010, 18:10 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Kevin Piche (kpiche)
Eric Belanger (Snowman)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

pgmtopbm appears to be broken in the 64-bit build.

32 bit version:-

$ pbmmake -g 40 40 | pgmtopbm | pnmnoraw | sort | uniq -c
20 0101010101010101010101010101010101010101
20 1010101010101010101010101010101010101010
1 40 40
1 P1

64-bit
$ pbmmake -g 40 40 | pgmtopbm | pnmnoraw | sort | uniq -c
40 0000000000000000000000000000000000000000
1 40 40
1 P1

johncc@liberator:~$ pacman -Q netpbm
netpbm 10.35.841-2
johncc@liberator:~$ pgmtopbm --version
pgmtopbm: Using libnetpbm from Netpbm Version: Netpbm 10.35.60
pgmtopbm: Compiled Fri Jan 22 05:40:38 UTC 2010 by user "nobody"
pgmtopbm: BSD defined
pgmtopbm: RGB_ENV='RGBDEF'
pgmtopbm: RGBENV= 'RGBDEF' (env vbl is unset)
johncc@liberator:~$

A friend tested with netpbm-10.47.13-1.fc12.x86_64 on 64-bit fedora and was not affected by the bug, so either it's been fixed upstream or it's specific to the Arch build.

If you use -threshold dithering instead of the default (Floyd Steinberg?) then the behaviour is correct in both architectures.

pamditherbw which has technically replaced pgmtopbm seems to work on both architectures too.
This task depends upon

Closed by  Eric Belanger (Snowman)
Saturday, 03 July 2010, 18:10 GMT
Reason for closing:  Fixed
Additional comments about closing:  fixed in netpbm-10.47.16-1
Comment by John Carlyle-Clarke (johncc) - Wednesday, 30 June 2010, 15:17 GMT
Sorry, just noticed the bad title and seems to be no way to edit it. Can an admin please change the title to "pgmtopbm default dithering fails on 64-bit systems"? Thanks.
Comment by Andrea Scarpino (BaSh) - Wednesday, 30 June 2010, 18:10 GMT
orphan. assigned to last builder and last maintainer
Comment by Eric Belanger (Snowman) - Friday, 02 July 2010, 16:49 GMT
I'll try updating it.
Comment by Eric Belanger (Snowman) - Saturday, 03 July 2010, 18:10 GMT
It was working on Fedora because they had replaced pgmtopbm by a script running:
pamditherbw $@ | pamtopnm

I did that change for the Arch package and updated it to the latest stable svn tarball.

Loading...