【问题标题】:Imagemagick Convert png to jxrImagemagick 将 png 转换为 jxr
【发布时间】:2014-04-09 17:21:06
【问题描述】:

我在将 *.png 文件转换并压缩为 *.jxr 文件时遇到了一些问题。

我在 imagemagick 转换工具中找不到任何选项,如速率或质量会改变生成的 .jxr 文件大小,现在有人可以操作转换后的文件大小吗?

【问题讨论】:

  • 你试过类似convert input.png -quality 80 -format JXR output.jxr吗?
  • 已经试过了,但我找到了解决方案,我会在几分钟内回答

标签: image imagemagick converter


【解决方案1】:

Imagemagick 仅在以下情况下不支持 JXR:

"Requires the jxrlib delegate library. Put the JxrDecApp and JxrEncApp applications in your execution path."

如果您已经成功安装了libjxr0libjxr-tools linux 软件包,那么您将面临下一个问题,如果您不知道JxrEncAppJxrDecApp 这两个应用程序是如何执行的。

所以这里是需要的背景:

  • 仅支持BMPTIFHDR
  • 错误不只显示!!!!!!整个手册页
  • 质量参数以0.000 开始,以1.000 结束

调用如下所示:

JxrEncApp -i test.tif -o test.jxr -q 0.231

【讨论】:

  • 我在使用 JxrEncApp 时遇到问题。我同时安装了 libjxr0 和 libjxr-tools,当我尝试运行 JxrEncApp -i wizard.hdr -o wizard.jxr -q 10 时,它会回复手册页和一个空(0 字节)wizard.jxr 文件。我不确定我做错了什么。我的wizard.hdr 文件是使用convert wizard.png -type truecolor wizard.jxr 创建的,它应该会生成请求的24bpp RGBE 图像。此外,根据手册页,最新版本要求 -q 参数为 1-10
  • @NickSchild 您是否尝试过使用较低质量的参数,例如 5 左右?
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2015-04-30
  • 2020-06-14
  • 2021-07-05
  • 2020-05-31
  • 2011-02-21
  • 2015-05-21
  • 2021-07-26
相关资源
最近更新 更多