It's nice to have a cross-platform, command-line image manipulation tool like Nconvert.
I use XnView MP 0.96.2 to export settings to it.
The thing that I miss is: curves and more parameter for '- levels'.
Is there any way to set other options for Nconvert to get the same results without levels and curves?
If it possible, what options should be used for this purpose?
In XnView Script it looks like this, what I would like to achieve:
<Levels in_low="27,0,0,0," in_high="222,255,255,255," out_low="0,0,0,0," out_high="255,255,255,255," gamma="0.49,1,1,1," mode="0"/>
<Curves count="1" curve_0="0,0,0.0768246,0.373786,0.514725,0.281553,0.859155,0.73301,1,1,"/>
What to use instead of levels and curves
Moderators: XnTriq, helmut, xnview
-
- Posts: 28
- Joined: Sun Sep 15, 2019 5:14 pm
Re: What to use instead of levels and curves
It's complicated. I think it will be easier to add the "-levels" parameter medium tone (shadow) to the command. For example:- levels 15 145 210, where 15 is the black point (B), 145 is the mid - tone point (shadow), and 210 is the white point (W).
-
- XnThusiast
- Posts: 4136
- Joined: Sun Apr 29, 2012 9:45 am
- Location: Cheltenham, U.K.
Re: What to use instead of levels and curves
+1 Add midtones value to -levels
-
- Posts: 3
- Joined: Tue May 19, 2020 5:09 pm
-
- Posts: 28
- Joined: Sun Sep 15, 2019 5:14 pm
Re: What to use instead of levels and curves
Yes, there are only 2 parameters now - the white point (W) and the black point(B). However, if the middle tone parameter is added to developers, it will simplify batch processing of similar scans. For example: "- autolevels -levels 000 165 255"
-
- Posts: 3
- Joined: Tue May 19, 2020 5:09 pm
Re: What to use instead of levels and curves
I couldn't find anything about plans like changing levels parameters or implementing curves in Nconvert in the near future.
What I really need is a workaround. I would like to use some other options instead of levels and curves. I'm new to Nconvert and I don't know if it possible or not.
Does anyone have tried and succeed to get the same result without levels and curves using Nconvert as he or she would get with for example using XnConvert with levels and curves?
What I really need is a workaround. I would like to use some other options instead of levels and curves. I'm new to Nconvert and I don't know if it possible or not.
Does anyone have tried and succeed to get the same result without levels and curves using Nconvert as he or she would get with for example using XnConvert with levels and curves?
-
- XnThusiast
- Posts: 4136
- Joined: Sun Apr 29, 2012 9:45 am
- Location: Cheltenham, U.K.
Re: What to use instead of levels and curves
If you check through the NConvert help file listing there are some other adjustments available that might be useful, although I'm not sure how satisfactory they would be for your needs.gm20 wrote: ↑Thu Jun 04, 2020 5:35 pm What I really need is a workaround. I would like to use some other options instead of levels and curves. I'm new to NConvert and I don't know if it possible or not.
Does anyone have tried and succeed to get the same result without levels and curves using NConvert as he or she would get with for example using XnConvert with levels and curves?
However, I see that there is also a gamma function, and although I'm no expert I think that is very similar or even identical to the missing midtones option in the levels function...
It would be interesting to enhance an image using levels in XnView MP for example, noting the black, white and midtones values used, and then try using identical values with levels and gamma corrections in NConvert. If that works maybe you could post the results side by side.