Some additional data points for detection of JBIG1/JBIG2 in libmagic:
The ITU specifications for both formats are now freely downloadable.
JBIG2 has a header containing an 8-byte signature:
97 4A 42 32 0D 0A 1A 0A
http://fileformats.archiveteam.org/wiki/JBIG2
There is a sample JBIG2 file in the
Erik Thiele wrote...
> hi
>
> > Yes, that needs attention. Do you have more public information about
> > the file format? I only found the jbigkit sources so far and couldn't
> > figure out the details so far.
>
> JBIG:
> http://www.jpeg.org/jbig/index.html
> no real information seems to be avai
hi
> Yes, that needs attention. Do you have more public information about
> the file format? I only found the jbigkit sources so far and couldn't
> figure out the details so far.
JBIG:
http://www.jpeg.org/jbig/index.html
no real information seems to be available here.
but jbigkit sources could
tags 744177 confirmed upstream moreinfo
thanks
Erik Thiele wrote...
> ### first lets create a demo image.
Thanks for that reproducer.
> and here is the bug / wishlist:
>
> bash$ file *
> back85.pbm: Netpbm PBM "rawbits" image data <-- OK
> back.pbm: Netpbm PBM "rawbits" image dat
Package: libmagic1
Version: 5.11-2+deb7u3
### first lets create a demo image.
bash$ cat >source_ascii.pbm < source.pbm
### please install jbigkit-bin 2.0-2+deb7u1
### lets create JBIG and JBIG2 files from our original image:
bash$ pbmtojbg source.pbm > comp.jbg
bash$ pbmtojbg85 source.pbm > comp.
5 matches
Mail list logo