Page 2 of 2

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

Posted: 2018-05-11T01:33:54-07:00
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"

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

Posted: 2018-05-11T01:40:20-07:00
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"

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

Posted: 2018-05-11T02:04:38-07:00
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?

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

Posted: 2018-05-11T03:22:31-07:00
by Robin55
I don't know to be honest I was just using Windows Notepad