How can I add a different logos to an image in batch with the same filenames?

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?".
Robin55
Posts: 22
Joined: 2018-03-19T15:29:46-07:00
Authentication code: 1152

Re: How can I add a logo to an image in batch?

Post by Robin55 »

Sorry I should of included an example of what I did:
for %%F in (Spine\*.png) do magick "Front Covers\%%~nF.png" ( "Spine\%%~nF.png" ) -gravity SouthWest -geometry +26+80 -composite "Covers\%%~nF.png"
Robin55
Posts: 22
Joined: 2018-03-19T15:29:46-07:00
Authentication code: 1152

Re: How can I add a logo to an image in batch?

Post by Robin55 »

I think I have it, using your original code all in one line seems to be working fine now. Thank you for all your help and patience! I'll try a few more now. Here is the code as I ended up using it:

for %%F in (Spine\*.png) do magick "Front Covers\%%~nF.png" ( "Spine\%%~nF.png" -rotate 90 -resize "50x533>" ) -gravity SouthWest -geometry +26+80 -composite "Covers\%%~nF.png"
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: How can I add a logo to an image in batch?

Post by snibgo »

I'm glad that works. When it doesn't, it seems your newlines are being ignored. What text editor are you using? Is it set to make unix-style newlines?
snibgo's IM pages: im.snibgo.com
Robin55
Posts: 22
Joined: 2018-03-19T15:29:46-07:00
Authentication code: 1152

Re: How can I add a logo to an image in batch?

Post by Robin55 »

I don't know to be honest I was just using Windows Notepad
Post Reply