Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 210
znarf Avatar asked Mar 22 '23 19:03

znarf


1 Answers

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.

like image 58
Cobra_Fast Avatar answered Apr 28 '23 01:04

Cobra_Fast