I've got some images that I want to resize and upload. I want them all to be 400px high and proportionately wide. I have the resizing working fine.
The problem is that I'm using Lightbox 2 to display the resized images and some of the image are so narrow that the title of the image wraps and my customer does not like that. So, my solution is to pad left and right of any images that are narrower than 275 px wide.
I've been looking through the GD Library, but am not sure which command is what I need to use. I'm using imagecopyresampled to resize the image. Can I change dst_x or src_x to cause the image to be padded to the correct amount or do I need to do something else. I want the padding to be black.
Thanks,
Alisa