0
votes

I have list of images and logos and want to join them like appending it on middle while i have following details.

Images with name of files like image1.jpg, image2.jpg, image3.jpg, image4.jpg all of them are in size of 1024x876

Logo with name of files like logo1.png, logo2.png, logo3.png and so on all of them are in size of 1024x876

I want to join image1.jpg with logo1.png, in a way that i should got the transparent image as logo image contain empty background.

Instead of copying every logo and pasting on every images, how can i do this automation with script or any paid tool. Tnx

1
Please provide image1.jpg, logo1.png and show how the result should look and what it should be called. Please also indicate if you are on Windows or a proper operating system.Mark Setchell
Final img look like this. imgur.com/a/3wI1U and image1 look like this imgur.com/a/THlT7 and logo1 png look like this. imgur.com/a/tUswM i am using windows.user2180101
Did my answer sort out your problem? If so, please consider accepting it as your answer - by clicking the hollow tick/checkmark beside the vote count. If not, please say what didn't work so that I, or someone else, can assist you further. Thanks. meta.stackexchange.com/questions/5234/…Mark Setchell

1 Answers

1
votes

I would commend ImageMagick to you, it is available for free for Linux, macOS and Windows. Use v7.

The basic command you want is:

magick -gravity center background.jpg overlay.png -composite result.jpg

enter image description here

If you have lots of files to do, you will need a FOR loop. I don't really speak Windows BATCH, but it will look something like this:

@ECHO OFF
FOR /F "usebackq" %%i in (`DIR /B *.jpg`) DO (
   ECHO magick -gravity center %%i %%~ni.png -composite result-%%i
)

Make a backup of your images and run this on a small sample copy. If it looks good, remove the ECHO and run again for real.