[SOLVED]Windows script driving IM: basic arithmetic on param
Posted: 2014-07-29T23:59:40-07:00
Bart van der Wolf, with some assistance from Fred Weinhaus, Alan Gibson and myself, has been polishing a Windows script that combines several ImageMagick commands to produce excellent quality when resizing. (Right now, it only works "perfectly" with sRGB input and output, but this may be extended to other input color spaces later.)
This script: http://www.luminous-landscape.com/forum ... #msg748602.
Now, we would like to be able have the script take an input value (let's call it sharpAmount, for sharpening amount), between 0 and 100, and perform some arithmetic on it in order to pass a derived value, named deblurValue, to -define filter:blur=deblurValue.
Specifically, we would like the relationship between the input and derived value to be as follows:(Of course the expression on the right can be simplified a bit. This is besides the point.)
Does anybody know how to do this (in Windows)?
Link to original question: http://www.luminous-landscape.com/forum ... #msg748960
This script: http://www.luminous-landscape.com/forum ... #msg748602.
Now, we would like to be able have the script take an input value (let's call it sharpAmount, for sharpening amount), between 0 and 100, and perform some arithmetic on it in order to pass a derived value, named deblurValue, to -define filter:blur=deblurValue.
Specifically, we would like the relationship between the input and derived value to be as follows:
Code: Select all
deblurValue = 0.88549061701764 + (1 - .01*SharpAmount)*(1-0.88549061701764)
Does anybody know how to do this (in Windows)?
Link to original question: http://www.luminous-landscape.com/forum ... #msg748960