加入收藏 | 设为首页 | 会员中心 | 我要投稿 拼字网 - 核心网 (https://www.hexinwang.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 服务器 > 搭建环境 > Linux > 正文

Linux系统中使用kakadu压缩解压图片

发布时间:2022-10-05 13:04:54 所属栏目:Linux 来源:
导读:  Kakadu简介

  Kakadu Software is a comprehensive, heavily optimized, fully compliant software toolkit for JPEG2000 developers. It is a complete implementation of the JPEG2000 standard, Part 1
  Kakadu简介
 
  Kakadu Software is a comprehensive, heavily optimized, fully compliant software toolkit for JPEG2000 developers. It is a complete implementation of the JPEG2000 standard, Part 1, — i.e., ISO/IEC 15444-1. The Software Development Kit (SDK) also provides a comprehensive implementation for several of the most useful features from Part 2 of the JPEG2000 standard, including general multi-component transforms and arbitrary wavelet transform kernels. This image compression standard is substantially more sophisticated than the existing JPEG standard, both from a computational and a conceptual perspective.
 
  Kakadu home and download url
 
  Kakadu Software | Kakadu Software
 
  kakadusoftware.com/downloads/
 
  MSYS2 download URL
 
  nchc.dl.sourceforge.net/project/msys2/Base/x86_64/msys2-x86_64-20190524.exe
 
  以下操作步骤,是针对于下载的是Linux版本的kakadu的demo
 
  1、将kakadu的demo放到Linux系统的某个目录下。
 
  2、解压kakadu的demo文件
 
  3、使用 vi /etc/profile 命令 添加如下环境变量
 
  PATH=$PATH:~/kakadu/bin
 
  LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/kakadu/bin
 
  export PATH
 
  export LD_LIBRARY_PATH
 
  4、使用 source /etc/profile 命令,使得前一步配置的环境变量生效果(很重要,也可以重启Linux 使得配置的环境变量生效)
 
  5、进入到kakadu的demo目录下linux压缩,修改可执行文件的权限,使用如下命令
 
  chmod +x *
 
  6、压缩图片,使用如下命令压缩
 
  ./kdu_compress -i lena.bmp -o out.j2c -rate 1.0
 
  7、解压图片,使用如下命令解压
 
  ./kdu_expand -i out.j2c -o abc.bmp
 

(编辑:拼字网 - 核心网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!