jbig2转其它格式(支持png,pbm)

本文详细介绍了如何从源码编译jbig2dec,并提供了使用示例。jbig2dec是一款用于解析和解码JBIG2格式文件的工具,支持多种输出格式,如PNG和PBM。通过指定参数,可以调整输出行为,如静默模式、详细输出、文件结构打印等。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

https://www.jbig2dec.com/

下载源码编译

./configure CC=arm-linux-gnueabi-gcc --host=arm-linux-gnueabi

 

Usage: jbig2dec [options] <file.jbig2>
   or  jbig2dec [options] <global_stream> <page_stream>

  When invoked with a single file, it attempts to parse it as
  a normal jbig2 file. Invoked with two files, it treats the
  first as the global segments, and the second as the segment
  stream for a particular page. This is useful for examining
  embedded streams.

  available options:
    -h --help      this usage summary
    -q --quiet     suppress diagnostic output
    -v --verbose   set the verbosity level
    -d --dump      print the structure of the jbig2 file
                   rather than explicitly decoding
       --version   program name and version information
       --hash      print a hash of the decoded document
    -e --embedded  expect embedded bit stream without file header
    -o <file>      send decoded output to <file>
                   Defaults to the the input with a different
                   extension. Pass '-' for stdout.
    -t <type>      force a particular output file format
                   supported options are 'png' and 'pbm'

执行

./jbig2dec image_102.jb2 -o unkn.png

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值