pnmtopng on large file

0

I am running pnmtopng on a 101M, 3000x4000 pixel PNM file. I get the error pnmtopng: ASCII decimal integer in file is too large to be processed. every time I run it. I looked through the source and it appears as though the dimensions of the file are too big for pnmtopng to handle. Without trying to edit and re-compile the source, how might I combat this?

Thanks.

See:

failing to transform

and

pnm file

tekknolagi

Posted 2015-12-09T06:09:21.083

Reputation: 1 130

What version of netpbm do you have? I can't find that error message anywhere in the current "super-stable" version netpbm-10.35.97. – Glenn Randers-Pehrson – 2015-12-18T18:18:23.483

@GlennRanders-Pehrson I have 10.68.0. – tekknolagi – 2015-12-18T22:42:34.760

I downloaded 10.68.1 and cannot find that error message anywhere in that source, either, nor in libpng or zlib. 3000x4000 is a reasonable image size. Perhaps you've got a bad BigEndian/LittlEndian situation somewhere. Can you post the first few lines (header plus a few pixels) of the pnm file? – Glenn Randers-Pehrson – 2015-12-18T23:24:33.400

@GlennRanders-Pehrson Nor can I. This is bizarre. Screenshot of the file is attached. – tekknolagi – 2015-12-22T22:43:49.590

No answers