png to jxr compression rate

Discuss digital image processing techniques and algorithms. We encourage its application to ImageMagick but you can discuss any software solutions here.
Locked
lilsmoka
Posts: 4
Joined: 2014-03-06T14:57:49-07:00
Authentication code: 6789

png to jxr compression rate

Post 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

User avatar
fmw42
Posts: 26383
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: png to jxr compression rate

Post 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.

lilsmoka
Posts: 4
Joined: 2014-03-06T14:57:49-07:00
Authentication code: 6789

Re: png to jxr compression rate

Post by lilsmoka »

Is this library already included? Really don't know how to handle this on linux Oo :shock:

User avatar
fmw42
Posts: 26383
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: png to jxr compression rate

Post 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

lilsmoka
Posts: 4
Joined: 2014-03-06T14:57:49-07:00
Authentication code: 6789

Re: png to jxr compression rate

Post by lilsmoka »

ok thanks for the information

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

lilsmoka
Posts: 4
Joined: 2014-03-06T14:57:49-07:00
Authentication code: 6789

Re: png to jxr compression rate

Post 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

Locked