I need to "target" some images in order to batch convert them with the following code (made with fmw42's amazing guidance):
Code: Select all
convert 0001.jpg -type Grayscale -threshold 35% -define connected-components:area-threshold=3 -define connected-components:mean-color=true -connected-components 8 0001.jpg
I though of thresholding the whole folder, extract the ratio, filter the ratio interval that corresponds to the images I'm targeting, and them applying the code only for those.
I'm struggling with the "info:" output. Any tips?
IM version: 7.0.8-27-Q16-x64
OS: Windows 7 Pro 64-bits.
Version date: 2019-01-27.