HeiWo wrote: ↑Wed Nov 11, 2020 2:23 pm
Hi,
I try to replace pixel several with '-replace_ex'.
I tried this:
Code: Select all
nconvert.exe -ctype rgb -replace_ex 192 192 192 192 192 192 5 -overwrite "C:\Temp\Example.bmp
But no pixel are replaced.
Is 'replace_ex' not working or what is wrong with my commandline?
This is a recently added option which I haven't used myself:
Code: Select all
-replace r g b r g b : Replace color
-replace_ex r g b r g b tolerance: Replace color
I would expect the usage to be in the following form:
Code: Select all
-replace r g b r g b -replace_ex r g b r g b
Where the
-replace term specifies the colour to be replaced, followed by the new colour, and the following
-replace_ex term sets a tolerance on the colour to be replaced to allow for the fact that in practice the colour to be replaced may not be a pure colour.
Note: I'm not sure what the '5' in your code after those terms represents, possibly intended as a colour tolerance value, which wouldn't seem to reflect the stated option format?
Edit:
I'm not clear in the absence of further documentation what the tolerance r g b terms are intended to represent, whether they specify two colour values, or whether they are a small numeric +/- value for each colour component.
If necessary, perhaps Pierre could clarify and possibly post example code
