Using quality (-q) with jp2 (-out jp2) has no effect

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderators: XnTriq, helmut, xnview

jedijorgie
Posts: 3
Joined: Tue Nov 11, 2003 6:37 am

Using quality (-q) with jp2 (-out jp2) has no effect

Post by jedijorgie »

I cannot get this to work:

nconvert -out jp2 -q 60 -o output.jp2 input.jp2

It creates output.jp2 just fine, but the quality is at 100%. In my tests I can put any number in place of the 60 and it does the same thing.

If I save the file with XnView with a quality setting of 60 the file goes from over 200K to 44k but looks just fine.

How do I get nconvert to save at the '60' quality level?

Jorgie
User avatar
xnview
Author of XnView
Posts: 44936
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Using quality (-q) with jp2 (-out jp2) has no effect

Post by xnview »

Hello,
jedijorgie wrote:I cannot get this to work:
nconvert -out jp2 -q 60 -o output.jp2 input.jp2
It creates output.jp2 just fine, but the quality is at 100%. In my tests I can put any number in place of the 60 and it does the same thing.
If I save the file with XnView with a quality setting of 60 the file goes from over 200K to 44k but looks just fine.
How do I get nconvert to save at the '60' quality level?
Strange, i have tested with NConvert v4.11, and all is ok!
Regards. Pierre.
jedijorgie
Posts: 3
Joined: Tue Nov 11, 2003 6:37 am

that is really strange

Post by jedijorgie »

I just downloaded and reinstalled. Here is what I am seeing.

I started with http://jorgie.org/initial.jpg which is 266,223 bytes.
I then ran:
nconvert.exe -out jp2 -q 60 -o nconvert60.jp2 initial.jpg

Which created http://jorgie.org/nconvert60.jp2 which is 425,451 bytes!

I then opened that in XnView and saved it as XnView60.jp2 with the quality set to 60.

That created http://jorgie.org/XnView60.jp2 whis is 71,061 bytes!

So I ask again, how do I get nconvert to output the 71,061 version of the file that XnView produces? Am I using the wrong setting with nconvert?

Jorgie
User avatar
xnview
Author of XnView
Posts: 44936
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: that is really strange

Post by xnview »

Hello,
jedijorgie wrote:So I ask again, how do I get nconvert to output the 71,061 version of the file that XnView produces? Am I using the wrong setting with nconvert?
No, sorry, there is a little bug. Quality is not used (ratio 1:20 is used).
Regards. Pierre.
jedijorgie
Posts: 3
Joined: Tue Nov 11, 2003 6:37 am

whew!

Post by jedijorgie »

Well at least I know I am not going crazy!!! :)

Any idea when you will get a chance to fix it?

Thanks for the great programs!

Jorgie
artwork

Post by artwork »

It looks like this bug still present in NConvert 4.17.
Any Idea when it`ll be fixed ?
Or is there any other way to pass the quality settings to NConvert ?

Kind Regards,
Markus
artwork

Post by artwork »

And would it be possible that the option -q would be passed to the lwfjp2 format too ?
Seems that this format always uses a quality setting of 100% (when compring the images in Photoshop using Difference)

Markus