Page 1 of 1

png to jxr compression rate

Posted: 2014-03-06T15:03:41-07:00
by lilsmoka
Hello,

I'm facing some problems in converting a png image to the jxr format with a given filesize.

In jp2 i solved it by adding a additional parameter and made an approch script so i read out the file size and increment/decrement the quality :
convert test.png -define jp2:rate=50 test.jp2

Is there a way to do this for jxr format, the example below doesn't work
convert test.png -define jxr:rate=50 test.jxr

Best Regards
Sprenger Stefan

Re: png to jxr compression rate

Posted: 2014-03-06T15:13:01-07:00
by fmw42
IM relies upon the JXR delegate library. So the answer will depend upon what arguments that library supports. I have no experience with it.

Re: png to jxr compression rate

Posted: 2014-03-06T15:17:37-07:00
by lilsmoka
Is this library already included? Really don't know how to handle this on linux Oo :shock:

Re: png to jxr compression rate

Posted: 2014-03-06T15:21:22-07:00
by fmw42
lilsmoka wrote:Is this library already included? Really don't know how to handle this on linux Oo :shock:
See http://www.imagemagick.org/script/formats.php

If it is loaded, it would show in the list of formats with at least r or rw via

convert -list format

or

in the list of delegates from

convert -version

on current versions of IM


or from

convert -list configure

on older versions of IM

Re: png to jxr compression rate

Posted: 2014-03-06T15:26:25-07:00
by lilsmoka
ok thanks for the information

is there a kind of guide like: "which files should be downloaded and put there and there"?

Re: png to jxr compression rate

Posted: 2014-03-06T16:03:43-07:00
by lilsmoka
I installed the library now with the help of:
https://packages.debian.org/de/sid/libjxr-dev

I'm also have the right code i think:
JxrEncApp -i test.png test.jxr -q 0.5

But everytime i execute this command, the man page of JxrEncApp is displayed and nothing is converted :(

Any ideas?

Solved:

JxrEncApp only takes .bmp,.tif or hdr as input format