Daniel-B
Daniel-B

Reputation: 111

Add some logo to all images in folder

Can I add a logo to all my images which are in the Images folder? If yes, how can I place the logo at the bottom left of the image?

On this picture you can see cinepicks.com in the middle of the picture. I want a logo on the bottom left of a picture and I want to do this only with PHP.

Can it be done with the imagepng() function?

Upvotes: 0

Views: 193

Answers (2)

alex
alex

Reputation: 580

I use a class called phpthumb for that. It's as easy as calling a url and you can do everything with image manipulation.

Upvotes: 1

Svish
Svish

Reputation: 157991

  1. Loop over each image file in a directory.
  2. Overlay your logo on each one.

You should be able to overlay an image according to this SO answer. Placing it in the lower left corner is just a matter of calculating the coordinates correctly.

Upvotes: 1

Related Questions