I’m new to php, but i’m fairly certain this is possible to do. I have a bunch of images on my server, and i’d like to give them all a thick black border. I know i could use CSS, but i’d rather the border was real. My images are all the same size, so it’s nothing more than centering the server image onto this black box image, then merging them together and re-saving the server image.
I could technically do this in photoshop too, but there’s a ton of images…
Bonus
If i could shrink the image after i’m done, that’d be nice too. They are a bit larger than i need.
Take a look at imagemagicks, see some examples here http://www.imagemagick.org/script/examples.php
You can call it via
exec()from PHPe.g. aligning two images next to each other, adding a border around each of them: