dprahut / openjpeg

Automatically exported from code.google.com/p/openjpeg
Other
0 stars 0 forks source link

pnmtoimage can't read conformant pgm/pnm files. #440

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
pnmtoimage can't read conformant pgm/pnm files according to 
http://netpbm.sourceforge.net/doc/pgm.html specification.

Issue 294 only partially solve the issue.

Original issue reported on code.google.com by m.darb...@gmail.com on 22 Nov 2014 at 2:22

GoogleCodeExporter commented 8 years ago
Could you please be a little more specific ? Thx

Original comment by mathieu.malaterre on 7 Jan 2015 at 4:41

GoogleCodeExporter commented 8 years ago
before r2942,

OpenJPEG failed to read data/baseline/conformance/a6_mono_colr_0.pgm

head -2 data/baseline/conformance/a6_mono_colr_0.pgm
P5
3323 891 255

Because it was expecting
P5
3323 891
255

The issue has been corrected for this specific PNM header disposition

A conforming header could be like :
P5 3323 891 255
Or
P5 3323
891 255
Or
...

In those cases, OpenJPEG would fail to read the file.

Original comment by m.darb...@gmail.com on 7 Jan 2015 at 5:12