composite one image over lots of PSD's

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
flieckster
Posts: 11
Joined: 2017-04-26T06:01:35-07:00
Authentication code: 1151

Re: composite one image over lots of PSD's

Post by flieckster » 2018-09-13T11:57:27-07:00

Thank you for the help Fred. in the code below, it does remove the meta. and also removed the Clipping paths from the PSD's. is there an easy way to retain that info?

Code: Select all

list=`ls | egrep ".psd"`
for img in $list; do
echo "$img"
magick $img \
\( -clone 0 -alpha off -fill black -colorize 75% \) \
\( -clone 0 -alpha transparent -gravity center -pointsize 900 \
-fill red -annotate +0+20 "Ultrafina" \) \
\( -clone 1--1 -flatten \) \
-swap 0,-1 +delete \
/Users/flieckb/Desktop/Out/$img
done


User avatar
fmw42
Posts: 25273
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: composite one image over lots of PSD's

Post by fmw42 » 2018-09-13T12:23:29-07:00

Not that I am aware. You can export the clipping path, but I do not know that you can add that back with ImageMagick. I think the best way would be to use EXIFTOOL to extract what you want from the input psd and then add it back into the output psd. See https://www.sno.phy.queensu.ca/~phil/exiftool/

But perhaps someone else on the forum can comment further.

If it is not possible, that would be a good feature to add to ImageMagick in the future.

flieckster
Posts: 11
Joined: 2017-04-26T06:01:35-07:00
Authentication code: 1151

Re: composite one image over lots of PSD's

Post by flieckster » 2018-09-13T13:57:21-07:00

Well it was worth the shot, but this has officially gone beyond the "is the juice worth the squeeze" test. Thank you for all the great help.

Post Reply