combine two commands into one (clone)
Posted: 2016-02-19T09:03:49-07:00
Hello,
I have two commands which are working perfectly separately (thanks to you all!):
First one is converting image to aRGB and does subtle denoising, second one applies high pass filter to sharpen image a bit.
I'd like to combine them into one to avoid one write to disk operation (which is costly when handling hundreds of 200MB+ files).
Unfortunately no matter how I combine them I loss one of operations, image is denoised but not sharpened or the other way around. Please, help!
Notes:
- regular sharpen filter will not cut it due to halos
- syntax oddities are due to running of regular Windows IM inside of Cygwin's zsh
- IM 6.9.3, 16-bit
m.
I have two commands which are working perfectly separately (thanks to you all!):
Code: Select all
convert $i -quiet -profile x:\\icc\\adobeRGB.icc \
\( +clone -gaussian-blur 6x3 \) -compose Colorize -composite j:\\hot\\$i
convert j:\\hot\\$i -quiet \( -clone 0 -blur 0x1.5 \) \
\( -clone 0 -clone 1 +swap -compose mathematics -set option:compose:args "0,1,-1,0.5" -composite \) \
\( -clone 0 -clone 2 -compose overlay -composite \) -delete 0-2 j:\\hot\\$i
I'd like to combine them into one to avoid one write to disk operation (which is costly when handling hundreds of 200MB+ files).
Unfortunately no matter how I combine them I loss one of operations, image is denoised but not sharpened or the other way around. Please, help!
Notes:
- regular sharpen filter will not cut it due to halos
- syntax oddities are due to running of regular Windows IM inside of Cygwin's zsh
- IM 6.9.3, 16-bit
m.