How to convert .tiff/.bmp to JPEG-XR with Imagemagick's convert tool?

泪湿孤枕 提交于 2019-12-07 13:20:00

问题


i'm using the convert tool from imagemagick to convert images to the jpeg-xr format.

i'm using the latest version under debian linux (ImageMagick-6.8.6-8).

The problem is convert -format jxr or convert -format wdp produce the same format as my source image and no valid jpeg-xr file. Is my -format parameter wrong? i didn't find anything about it

thanks in advance


回答1:


The -format option is for outputting metadata in a specific format, not selecting the output file format.

Selecting a specific output format is done by prefixing the output filename with the tag described at http://www.imagemagick.org/script/formats.php, so for example

convert input.jpg jxr:output.jpg

Normally, imagemagick detects the output format based on the file extension you chose for your output file, so by choosing .jxr as your file extension it should automatically use the JPEG-XR format.



来源:https://stackoverflow.com/questions/18211517/how-to-convert-tiff-bmp-to-jpeg-xr-with-imagemagicks-convert-tool

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!