Help consolidate everything to then 'glob' batch-process (Windows)
Posted: 2018-11-03T09:50:02-07:00
I feel terrible to beg for help, but I've been bashing my head against a wall long enough now...
(Version: ImageMagick 6.9.0-1 Q16 x86 2014-12-22)
I'm trying to turn this BAT file into something that can be 1 line and so be able to *.* batch-process a large amount of files.
The reason for splitting it up this way is so I have an output image for each command to inspect and tweak.
_________________________________________
convert _.png -filter Point -resize 300%%x300%% png32:_2(tmp).png
convert _2(tmp).png -alpha deactivate -median 0x3 -despeckle png32:_3(tmp).png
convert _3(tmp).png -roll +1+1 _4(tmp).png
convert _4(tmp).png -gaussian-blur 2x2 _5(tmp).png
convert _5(tmp).png -filter Mitchell -resize 66.666666%%x66.666666%% _6(tmp).png
convert _6(tmp).png -sharpen 3x9 -sharpen 2x9 -sharpen 1x3 _7(tmp).png
convert _7(tmp).png -separate -seed 666 -attenuate 0.08 +noise gaussian -combine -colorspace sRGB _8(tmp).png
convert _8(tmp).png -brightness-contrast -0x-1 -black-threshold 0.4%% _(out).png
_________________________________________
So instead of beginning specifically with "_.png" and ending with "_(out).png", I'm looking instead to "*.png" and "*(out).png" so it would do everything in a folder.
I've been over this page several times - https://imagemagick.org/script/command- ... essing.php
...and I've tried a number of different approaches, but I always get errors and/or unfinished processing if I even get an output at all, so forgive me for not posting what I've already tried but there are a bunch of them now. Simply adding a * to every filename here does not work.
If anyone would be kind enough to help, that would be great!
.
.
.
(Version: ImageMagick 6.9.0-1 Q16 x86 2014-12-22)
I'm trying to turn this BAT file into something that can be 1 line and so be able to *.* batch-process a large amount of files.
The reason for splitting it up this way is so I have an output image for each command to inspect and tweak.
_________________________________________
convert _.png -filter Point -resize 300%%x300%% png32:_2(tmp).png
convert _2(tmp).png -alpha deactivate -median 0x3 -despeckle png32:_3(tmp).png
convert _3(tmp).png -roll +1+1 _4(tmp).png
convert _4(tmp).png -gaussian-blur 2x2 _5(tmp).png
convert _5(tmp).png -filter Mitchell -resize 66.666666%%x66.666666%% _6(tmp).png
convert _6(tmp).png -sharpen 3x9 -sharpen 2x9 -sharpen 1x3 _7(tmp).png
convert _7(tmp).png -separate -seed 666 -attenuate 0.08 +noise gaussian -combine -colorspace sRGB _8(tmp).png
convert _8(tmp).png -brightness-contrast -0x-1 -black-threshold 0.4%% _(out).png
_________________________________________
So instead of beginning specifically with "_.png" and ending with "_(out).png", I'm looking instead to "*.png" and "*(out).png" so it would do everything in a folder.
I've been over this page several times - https://imagemagick.org/script/command- ... essing.php
...and I've tried a number of different approaches, but I always get errors and/or unfinished processing if I even get an output at all, so forgive me for not posting what I've already tried but there are a bunch of them now. Simply adding a * to every filename here does not work.
If anyone would be kind enough to help, that would be great!
.
.
.