Hi all,
The
down-sampling with sharpening code in Windows Batch script dialect is now:
convert ( "input.png" -depth 16 -set colorspace sRGB -colorspace RGB ) ^
-define filter:c=0.1601886205085204 -filter Cubic -distort Resize 800x800 ^
-set colorspace RGB -colorspace sRGB ^
-define convolve:scale=^75%%,100 -morphology Convolve DoG:0,0,0.5007503035749775 ^
"output.png"
As coded here, it assumes the original is larger that fits in an 800x800 pixel boundary, and will be down-sampled. I've selected an 'amount' setting of 75 (to allow to spot it easily) in the code snippet, but values from 50 to 100 can be considered normal. When set to normal at 50, there is minimal halo risk, and when set to crisp at 100, there is some halo risk (but usually too small to see at 100% display zoom). Therefore, in the full script it is a variable that takes user input, thus allowing to adjust based on personal preference and image content. Higher values can also be used, but currently have a higher risk of causing clipping if there is already high contrast detail near the clipping points (although it does allow to bring out structure in otherwise lower contrast regions in the medium brightness tonal range).
If no post-down-sample sharpening is anticipated to be done, one may better use another algorithm that's sharper by definition than the purposely blurry 'RobidouxSoft', because without additional sharpening there is no risk of boosting halos.
Again, this is specific code for
down-sampling, since the Point Spread Function that is used for deconvolution is optimized for that type of image content when using the 'RobidouxSoft' filter settings. When cheating a bit, one can select this algorithm for upsampling, and use a significantly higher 'Amount', but in general one gets better results with the initial more general blending algorithm optimzed for those upsampling scales.
Cheers,
Bart
P.S. Attached you will find the most recent version (1.1.2)