Giter VIP home page Giter VIP logo

jbig2dec's Introduction

jbig2dec is a decoder library and example utility implementing the JBIG2
bi-level image compression spec. Also known as ITU T.88 and ISO IEC
14492, and included by reference in Adobe's PDF version 1.4 and later.

The basic invocation is:

    jbig2dec [-o <output file>] file.jbig2

It also supports separate 'global' and 'page' streams, generally
extracted from some embedded format:

    jbig2dec [-o <output file>] <global_stream> <page_stream>

The program is only partially functional at this time, but should be
useful in some limited contexts. We welcome files that the decoder can't
handle, or renders incorrectly.

A set of example files is available from
http://www.ece.ubc.ca/spmg/jbig2/bitstreams/main.html

More information about this project and updated versions are available
from http://jbig2dec.sf.net/ Development source code is kept in a 
subversion repository at svn.ghostscript.com.

The contact address for the project is <[email protected]>.

jbig2dec's People

Stargazers

Nico Weber avatar  avatar Chris... avatar NRR avatar  avatar  avatar  avatar guodaxia0614 avatar Hayaki Saito avatar David Lewis avatar Ralph Giles avatar

Watchers

Ralph Giles avatar  avatar  avatar

jbig2dec's Issues

recipe for target 'jbig2_image_png.o' failed

gcc -DHAVE_CONFIG_H -I.     -g -O2 -Wall -MT jbig2_image_png.o -MD -MP -MF .deps/jbig2_image_png.Tpo -c -o jbig2_image_png.o jbig2_image_png.c
jbig2_image_png.c: In function ‘jbig2_png_write_data’:
jbig2_image_png.c:36:56: error: dereferencing pointer to incomplete type ‘png_struct {aka struct png_struct_def}’
     check = fwrite(data, 1, length, (png_FILE_p)png_ptr->io_ptr);
                                                        ^
jbig2_image_png.c: In function ‘jbig2_png_flush’:
jbig2_image_png.c:46:26: warning: implicit declaration of function ‘CVT_PTR’ [-Wimplicit-function-declaration]
     io_ptr = (png_FILE_p)CVT_PTR((png_ptr->io_ptr));
                          ^
Makefile:809: recipe for target 'jbig2_image_png.o' failed
make[1]: *** [jbig2_image_png.o] Error 1
make[1]: Leaving directory '/home/root/jbig2dec'
Makefile:608: recipe for target 'all' failed
make: *** [all] Error 2

jbig2dec Fatal error Not a jbig2 file header

Hi,

I am new to image decoding and came across jbig2dec for decoding jbig2 files.

I encoded the Winter.jpg to Winter.jbig2 file using the command in Windows XP cmd:

jbig2 -s -v Winter.jpg > Winter.jbig2

I got the file Winter.jbig2.

Now when I decode the file using the command

jbig2dec -o Winter Winter.jbig2

an error is displayed
jbig2dec Fatal error Not a jbig2 file header.

Attaching the files for your reference. Can you please let me know where am I going wrong.

Hoping to get your help,hints at the earliest.

Thanks & Regards

winter

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.