Image Upload In Codeigniter With Watermark

Image Upload In Codeigniter With Watermark

This tutorial will show you how to upload an image and watermark the image using Codeigniter. The Watermarking feature requires the GD/GD2 library.

Codeigniter image upload library allows us to do image watermark in two ways with small configurations changes.

1. Text watermark.(wm_text)
Codeigniter text watermark message will be generated using text, either with a True Type font that you specify, or using the native text output that the GD library supports.

2. Image overlay watermark.(wm_overlay_path)
Codeigniter image watermark message will be generated by overlaying an image (usually a transparent PNG or GIF) containing your watermark over the source image.

Step 1.Create a controller for codeigniter image watermark using image library

Step 2.Create a view for codeigniter image watermark using image library

Create html view with image upload form and make a action to doupload function in Imageupload class.

Now upload will add watermark and moved to destination path.

I hope you like this codeigniter image upload with watermark, Please feel free to comment below, your suggestion and problems if you face.