i have a little script doing well within xnconvert
1:Niveaux, avec Luminosité: 0...210 & sortie 0...255
2:Redimensionner: coté le plus court = 1400
works well in the prog itself

in .xbs we get all the parameterss:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?><XnView_script version="1.0" name="nc21_levels210_1400">
<Levels in_low="0,0,0,0," in_high="210,255,255,255," out_low="0,0,0,0," out_high="255,255,255,255," gamma="1,1,1,1," mode="0"/>
<Resize mode="2" width="1400" height="0" unit="0" ratio="true" orientation="false" enlarge="0" resample="7" gamma_correct="false"/>
<Output folder="" filename="nb_{Filename}" case="0" startIndex="1" format="JPEG">
<Options overwrite="1" orgDate="false" keepMeta="false" keepICC="false" keepFolder="false" keepParentFolder="false" keepExtension="true" delOrg="false" multipage="false" allPages="false" openExplorer="false" openBrowser="false" clearItems="false"/>
<JPEG quality="90" progressive="false" optimizeHuffman="true" rebuildThumb="true" orgQuality="false" DCTMethod="0" subSampling="0" smoothFactor="0"/>
</Output>
</XnView_script>

Code: Select all
nconvert -ratio -rtype lanczos -resize shortest 1400 -out jpeg -q 90 -opthuff
PS In nconvert help:
Code: Select all
-levels b w : Levels
