Automate Adding Logos to Images with Python

I recently needed to a logo to the bottom right of a large number of pictures and the pictures were a mixed bag of potrait or landscape orientation and also had different dimensions. So writing the Batch Automation script in Photoshop got a little more complicated than I would have liked. I then thought that maybe it might be good to try out a local experiment with my locally running Qwen 2.5 coder model and see how well it came up with a Python script which would do the following:

  • Open the file
  • Open the logo file
  • Add the logo to the bottom right of the picture
  • Save the new file

The above loops through all the pictures in the folder and saves it with the same name.

Feel free to submit a PR if you feel like adding a change or use it as you see fit. The .py file was generated using Qwen 2.5 and the ReadMe was generated using Claude Haiku while running them using Visual Studio Code & Github Copilot. How I configured my local harness is a topic for another blog post. I will get that in the near future.

Here is link to the script:
ReadMe
Script

It is always good to hear from you! :)

This site uses Akismet to reduce spam. Learn how your comment data is processed.