after testing Vaphell's suggestion and inserting the text file after the "done <" stage, that part of the script seemed to work.
How ever, It seemed to have created a new problem with the processing code(which worked before) that I hope someone can help me with.
Code:
composite NEW/$f -blend 50x50 OLD/$f TEMP/$f.01.png
convert TEMP/$f.01.png -background "#808080" -flatten +matte \
-channel rgba -alpha set -fuzz 1% -fill none -opaque "#7f7f7f" \
-channel rgba -alpha set -fuzz 60% -fill black -opaque "#808080" \
-background "#ffffff" -flatten +matte \
-channel rgba -alpha set -fuzz 1% -fill none -opaque "#000000" TEMP/$f.02.png
composite -compose dst-out TEMP/$f.02.png NEW/$f -matte DIFF/$f
Which results in a bunch of errors.
Code:
convert: unable to open image `TEMP/armor/cloth_1.png.01.png': @ error/blob.c/OpenBlob/2587.
convert: unable to open file `TEMP/armor/cloth_1.png.01.png' @ error/png.c/ReadPNGImage/3238.
convert: missing an image filename `TEMP/armor/cloth_1.png.02.png' @ error/convert.c/ConvertImageCommand/3011.
composite: unable to open image `TEMP/armor/cloth_1.png.02.png': @ error/blob.c/OpenBlob/2587.
composite: unable to open file `TEMP/armor/cloth_1.png.02.png' @ error/png.c/ReadPNGImage/3238.
composite: missing an image filename `DIFF/armor/cloth_1.png' @ error/composite.c/CompositeImageCommand/1616.
I'm fairly confident it has something to do with the pathways, My guess is that imagemagick does not create the directories for me.
Bookmarks