Search found 4 matches

by HeiWo
Fri Nov 13, 2020 7:05 am
Forum: NConvert
Topic: Cannot make '-replace_ex' option work
Replies: 8
Views: 1660

Re: Cannot make '-replace_ex' option work

Hi,
Now I get it...
The 'Red_image.png' must exist. After renaming from 'test.png' to 'Red_image.png' it works. The output is a 'Test.png.

Anyhow using:
nconvert -replace 255 0 0 0 0 255 -o test.png -out png Red_image.png
or
nconvert -replace_ex 255 0 0 0 0 255 5 -o test.png -out png Red_image ...
by HeiWo
Fri Nov 13, 2020 6:51 am
Forum: NConvert
Topic: Cannot make '-replace_ex' option work
Replies: 8
Views: 1660

Re: Cannot make '-replace_ex' option work

Hi,
I tried with the attached file and get this:
hw_202011_24.png

C:\Temp\NConvert>nconvert -replace_ex 255 0 0 0 0 255 5 -o Test.png -out png Red_image.png
** NCONVERT v7.60 (c) 1991-2019 Pierre-E Gougelet (Oct 15 2020/10:54:16) **
Version for Windows Xp/Vista/7 x64 (All rights reserved ...
by HeiWo
Wed Nov 11, 2020 4:56 pm
Forum: NConvert
Topic: Cannot make '-replace_ex' option work
Replies: 8
Views: 1660

Re: Cannot make '-replace_ex' option work

Hi,
I understood it the way that the tolerance gives a range in which the RGB is replaced.
I set the 5 to have a tolerance of RGB 187 187 187 up to RGB 197 197 197 to be converted to RGB 192 192 192.
That is what I need. But I'm unsure if my commandline is correct.
Regards,
-HeiWo-
by HeiWo
Wed Nov 11, 2020 2:23 pm
Forum: NConvert
Topic: Cannot make '-replace_ex' option work
Replies: 8
Views: 1660

Cannot make '-replace_ex' option work

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?
Regards,
-HeiWo-