4

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

znarf
  • 814
  • 2
  • 15
  • 31
  • 4
    `JPEG extended range - Requires the jxrlib delegate library. Put the JxrDecApp and JxrEncApp applications in your execution path.` (http://www.imagemagick.org/script/formats.php#supported) ..is this done already? – sofl Aug 16 '13 at 08:55
  • yes, this is done already. – znarf Aug 18 '13 at 18:12
  • 1
    Where did you find the JxrDecApp and JxrEncApp? – Lucas Feb 14 '19 at 17:23
  • 1
    @Lucas The only place I found them online is here: https://github.com/4creators/jxrlib/tree/master/jxrencoderdecoder. I would also like to know where you put these files? What is considered the `execution path`? And do we need to rebuild imagemagick after doing this? I need to do this for macOS and Ubuntu 18. Does the `execution path` change for each OS? – Joshua Pinter Nov 30 '20 at 17:03
  • did not see this question pop up but execution path refers to the PATH variable on your system it basically means that your OS can find those files when you want to execute them by itself. on linux you can either put the binarys in /usr/bin or anywhere on your system as long as you add the absolute folder path to your "PATH" variable. you can do this via your .bashrc or .zshrc or on windows with the "environment variable" menu. easy solution: for mac&linux chmod +x the files to make them executable and then put it in /usr/bin. – znarf Apr 16 '21 at 20:49

1 Answers1

7

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.

Cobra_Fast
  • 15,671
  • 8
  • 57
  • 102