Combining two images with CodeIgniter Image Manipulation Class
I am developing a new project in CodeIgniter (CI) and would like to find a CI solution for this current problem. I have one image that looks like a picture frame. I would like the uploaded images to be resized so that this frame is in their background.
Example:
alt text http://www.sampsonresume.com/projects/visit-creation/vc-process.jpg
The first image is the frame. The second is the uploaded image (after resizing / cropping) and the third is a combination of both that I would like to accomplish.
source to share
If the images are going to be displayed on your own website, it would be easier to just use CSS (especially if your bottom image just gives a border ...). Of course, if you want people to download these frame files, that's a different story.
I don't think CI has a built-in method in the Image Manipulation class. But this class is just abstract commonly used functions from one of the three core PHP image libraries (GD, ImageMagick, and NetPBM). If you know which library you are using (I usually use GD for basic things like this ...) then you just have to use your own ways to do it.
You can even create your own library or extend the Image Manipulation class to add your own custom functionality.
Also, there may be ways to do this in Zend (not sure, I won't search either). But there are easy ways to include Zend components in CI if you find something.
Good luck!
source to share