December 2013
Intermediate to advanced
306 pages
6h 26m
English
CodeIgniter can add watermarks with text as detailed in the preceding recipe, but CodeIgniter can also by overlaying a watermark image on top of a base image. Here's how it's done…
We're going to use a library of our own for this. If you haven't already done so (in the other recipes in this chapter), create the following file:
/path/to/codeigniter/application/libraries/image_manip.phpimage_manip library class is defined as follows:<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Image_manip {
}Read now
Unlock full access