Good day everybody,
[Little Disclaimer: plaese correct me, if I’m wrong here. ]
after the fix miaoqi implemented yesterday, we played around with various options, to find a way of creating images, that look as close as possible like the results Affinity Photo does for us. While trying, we noticed, that the parameter “-c” is not working and returned always with “Error: Non-numeric argument to ‘-c’”.
We looked it up in usage.h and found the lines 249 and 250 which -if I got it right- seem to declare which parameter can take which amount of parameter-values (i.e. ‘-H’ takes one parameter-value). If thats correct, these lines show, that parameters “H”, “M” and “G” should take one parameter-value and “c” should get four?
usage.h
line: 249 if (( cp = strchr ( sp = (char*)“HMGcnbksStqmBC”, opt )) != 0 )
line: 250 for (int i=0; i < “111411111142”[cp-sp]-‘0’; i++)
For a test, we changed these lines to:
our new usage.h
line: 249 if (( cp = strchr ( sp = (char*)“HcnbksStqmBC”, opt )) != 0 )
line: 250 for (int i=0; i < “111111111142”[cp-sp]-‘0’; i++)
As you can see, we removed the parameters “M” and “G”, since these are either not listed by “rawtoaces --help” or should take no parameter-values. And we switched the “4” in position four to “1”, since every paremeter takes exactly one parameter-value, excluding “B” and “C” which take four and two parameter-values.
Having these changes in place, we were able to use the “-c” parameter.
Again: As I’m not the creator of this code, I might have missunderstood something, don’t hesitate to correct me here