piping more than once
Posted: 2012-05-02T14:42:18-07:00
I am dynamically creating a watermark image with 'convert' then piping it into a 'composite' command to watermark the image without having to save the watermark image:
After the composite command, I would like to pipe again but use the firstly created watermark in the 3rd command ( after the 2nd pipe)
so something like:
is this possible? I read the bit on fd:5 file descriptor's and tried using it similar to a variable but I'm assuming I wasn't using it right because it didn't work.
any help would be greatly appreciated! thanks
Code: Select all
convert -gravity center -size 90x60 label:"username" miff:- | composite -dissolve 90 -tile - image.jpg jpg:-
so something like:
Code: Select all
create watermark | use watermark to create an image | use both the watermark and image again
any help would be greatly appreciated! thanks