Page 1 of 1

6.8.8.8 convert fails for pbm

Posted: 2014-03-30T13:48:38-07:00
by root
Hello, I'm trying to convert (resize) a pbm, and I've tested versions up to 6.8.8.7 and it seems to be working, but on 6.8.8.8 it doesn't actually produce the pbm image as expected.

on 6.8.8.8 ->

Code: Select all

alpha-centauri ~ # cat test.pbm 
P4
54 29
¹ÿÿ¤¡ "Ý>U"f " "x
alpha-centauri ~ # convert test.pbm -resize 50% test2.pbm                           
alpha-centauri ~ # cat test2.pbm 
P4
27 15

on 6.8.8.7 ->

Code: Select all

alpha-centauri ~ # cat test.pbm 
P4
54 29
¹ÿÿ¤¡ "Ý>U"f " "x
alpha-centauri ~ # convert test.pbm -resize 50% test2.pbm
alpha-centauri ~ # cat test2.pbm 
P4
27 15
ïðªÀópò@RÀ

Is there some required parameter I'm missing in the newest version that would be stopping this? I verified it on 2 pc's. Running an up to date gentoo build. netpbm-10.61.00 .

Thanks!

Re: 6.8.8.8 convert fails for pbm

Posted: 2014-03-30T21:25:12-07:00
by snibgo
I don't have 6.8.8-8, but 6.8.8-9 seems to work okay.

How many bytes are in your two versions of test2.pbm? Can you convert each one to test2.png, and successfully view test2.png?