JPEG 'use estimated original quality' option

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

Moderators: XnTriq, xnview

cday
XnThusiast
Posts: 3083
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

JPEG 'use estimated original quality' option

Post by cday »

A JPEG save compression option 'use estimated original quality' would be a useful addition please... :D
User avatar
xnview
Author of XnView
Posts: 36420
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: JPEG 'use estimated original quality' option

Post by xnview »

ok, will be added
Pierre.
User avatar
Peter2
XnThusiast
Posts: 1270
Joined: Thu Nov 24, 2005 3:07 pm
Location: CH

Re: JPEG 'use estimated original quality' option

Post by Peter2 »

See version 2.49.5, Feb 02, 2021
XnView 2.50.2 German, Win 10
User avatar
Peter2
XnThusiast
Posts: 1270
Joined: Thu Nov 24, 2005 3:07 pm
Location: CH

Re: JPEG 'use estimated original quality' option

Post by Peter2 »

@Pierre

please add this info also to the "-help" section. At the moment there is only:

Code: Select all

-q value          : JPEG/FPX/WIC/PDF/JPEG2K quality (default : 85)
XnView 2.50.2 German, Win 10
User avatar
Peter2
XnThusiast
Posts: 1270
Joined: Thu Nov 24, 2005 3:07 pm
Location: CH

Re: JPEG 'use estimated original quality' option

Post by Peter2 »

BTW: How to use it? I failed ...
XnView 2.50.2 German, Win 10
cday
XnThusiast
Posts: 3083
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: JPEG 'use estimated original quality' option

Post by cday »

Peter2 wrote: Wed Apr 21, 2021 8:28 pm BTW: How to use it? I failed ...
Using -use_org_quality in place of a -q term doesn't work?

Such as:

Code: Select all

-out jpeg -use_org_quality
User avatar
Peter2
XnThusiast
Posts: 1270
Joined: Thu Nov 24, 2005 3:07 pm
Location: CH

Re: JPEG 'use estimated original quality' option

Post by Peter2 »

My code is longer, and it seems to have problems with params following the -use_org_quality.
But finally it creates a file - but not the one I defined ..

Defined quality:

Code: Select all

D:\xxx\foto>nconvert.exe -keepfiledate -q 100 -out jpeg -jpegtrans exif -exif_orient 1  -o "D:\xxx\foto\q100.jpg"   "D:\xxx\foto\source.JPG"
** NCONVERT v7.70 (c) 1991-2019 Pierre-E Gougelet (Feb  1 2021/10:49:07) **
        Version for Windows NT/9x/2000/Xp/Vista/7  (All rights reserved)
** This is freeware software (for non-commercial use)

Lossless transformation of D:\xxx\foto\source.JPG : OK
Original quality:

Code: Select all

D:\xxx\foto>nconvert.exe -keepfiledate -use_org_quality -out jpeg -jpegtrans exif -exif_orient 1  -o "D:\xxx\foto\orig.jpg"   "D:\xxx\foto\source.JPG"
** NCONVERT v7.70 (c) 1991-2019 Pierre-E Gougelet (Feb  1 2021/10:49:07) **
        Version for Windows NT/9x/2000/Xp/Vista/7  (All rights reserved)
** This is freeware software (for non-commercial use)

  Error: Can't open file (jpeg)
  Error: Can't open file (-jpegtrans)
  Error: Can't open file (exif)
  Error: Can't open file (-exif_orient)
  Error: Can't open file (1)
  Error: Can't open file (-o)
  Error: Can't open file (D:\xxx\foto\orig.jpg)

Conversion of D:\xxx\foto\source.JPG into D:\xxx\foto\source_1.jpg OK
XnView 2.50.2 German, Win 10
User avatar
xnview
Author of XnView
Posts: 36420
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: JPEG 'use estimated original quality' option

Post by xnview »

there is a problem with 'use_org_quality' argument, and there is no need to use it with -jpegtrans (quality is not changed)
Pierre.
User avatar
Peter2
XnThusiast
Posts: 1270
Joined: Thu Nov 24, 2005 3:07 pm
Location: CH

Re: JPEG 'use estimated original quality' option

Post by Peter2 »

xnview wrote: Thu Apr 22, 2021 1:19 pm there is a problem with 'use_org_quality' argument, and there is no need to use it with -jpegtrans (quality is not changed)
You mean there is a problem which you will fix or which can be avoided by the user?
XnView 2.50.2 German, Win 10
User avatar
xnview
Author of XnView
Posts: 36420
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: JPEG 'use estimated original quality' option

Post by xnview »

Peter2 wrote: Thu Apr 22, 2021 1:47 pm
xnview wrote: Thu Apr 22, 2021 1:19 pm there is a problem with 'use_org_quality' argument, and there is no need to use it with -jpegtrans (quality is not changed)
You mean there is a problem which you will fix or which can be avoided by the user?
yes will be fixed
Pierre.
User avatar
Peter2
XnThusiast
Posts: 1270
Joined: Thu Nov 24, 2005 3:07 pm
Location: CH

Re: JPEG 'use estimated original quality' option

Post by Peter2 »

Hello Pierre
some schedule for a fix?
XnView 2.50.2 German, Win 10
User avatar
xnview
Author of XnView
Posts: 36420
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: JPEG 'use estimated original quality' option

Post by xnview »

new version will be released in september
Pierre.