I've been trying for some time to pipe Fred's scripts together with the convert command in bash to alter a series of images in a certain way, but have not been successful. I would like to start with running a convert command, then use the output form the convert command in Fred's script, then use the output form Fred's script in a second convert command. I want to avoid to create temporary files which will then have to be deleted, and I want to execute the commands in this particular order.
Here I have provided a simplified example:
Code: Select all
convert logo: -colorspace gray jpg:- | bash midtonebalance.sh -rc -10 -gm 0 -by 50 -p - jpg:- | convert - -colorspace RGB output.jpg
Code: Select all
convert: no decode delegate for this image format `' @ error/constitute.c/ReadImage/556.
convert: no images defined `output.jpg' @ error/convert.c/ConvertImageCommand/3273.