From 6d504e1928f8638fabbd1ead84ce140d9fabf237 Mon Sep 17 00:00:00 2001
From: Derek Allard
Note: In order for the image class to be allowed to do any processing, the -folder containing the image files must have file permissions of 777.
+folder containing the image files must have write permissions.If you prefer not to set preferences using the above method, you can instead put them into a config file. -Simply create a new file called the image_lib.php, add the $config +Simply create a new file called image_lib.php, add the $config array in that file. Then save the file in: config/image_lib.php and it will be used automatically. You will NOT need to use the $this->image_lib->initialize function if you save your preferences in a config file.
@@ -318,11 +318,11 @@ or create a thumbnail image.For practical purposes there is no difference between creating a copy and creating a thumbnail except a thumb will have the thumbnail marker as part of the name (ie, mypic_thumb.jpg).
-All preferences listed in the table above are available for this function except these three: rotation, x_axis, and y_axis.
+All preferences listed in the table above are available for this function except these three: rotation_angle, x_axis, and y_axis.
The resizing function will create a thumbnail file (and preserve the original) if you set this preference so TRUE:
+The resizing function will create a thumbnail file (and preserve the original) if you set this preference to TRUE:
$config['create_thumb'] = TRUE;
@@ -357,7 +357,7 @@ preferences for the X and Y axis (in pixels) specifying where to crop, like this
$config['x_axis'] = '100';
$config['y_axis'] = '40';
-All preferences listed in the table above are available for this function except these: rotation, width, height, create_thumb, new_image.
+All preferences listed in the table above are available for this function except these: rotation_angle, width, height, create_thumb, new_image.
Here's an example showing how you might crop an image:
@@ -440,7 +440,7 @@ containing your watermark over the source image.Just as with the other function (resizing, cropping, and rotating) the general process for watermarking +
Just as with the other functions (resizing, cropping, and rotating) the general process for watermarking involves setting the preferences corresponding to the action you intend to perform, then calling the watermark function. Here is an example:
@@ -482,7 +482,7 @@ will be positioned at the bottom/center of the image, 20 pixels from the bottom$this->load->model('Model_name');
If you model is located in a sub-folder, include the relative path from your models folder. For example, if you have a model located at application/models/blog/queries.php you'll load it using:
+If your model is located in a sub-folder, include the relative path from your models folder. For example, if you have a model located at application/models/blog/queries.php you'll load it using:
$this->load->model('blog/queries');
If you would like your model assigned to a different object name you can specify it via the second parameter of the loading function:
-- cgit v1.2.3-24-g4f1b