From 44dbc7826dc34c86829b734fcec0015271b7873f Mon Sep 17 00:00:00 2001
From: Derek Allard
Date: Tue, 29 Jan 2008 20:38:55 +0000
Subject: Fixed a bug (#3024) in which master_dim wasn't getting reset by
clear() in the Image library.
Documented clear()
---
user_guide/changelog.html | 4 +++-
user_guide/libraries/image_lib.html | 6 ++++--
2 files changed, 7 insertions(+), 3 deletions(-)
(limited to 'user_guide')
diff --git a/user_guide/changelog.html b/user_guide/changelog.html
index 03c77d35c..b6125b7e1 100644
--- a/user_guide/changelog.html
+++ b/user_guide/changelog.html
@@ -117,7 +117,8 @@ Change Log
Added a language entry for valid_ip validation error.
Modified prep_for_form() in the Validation class to accept arrays, adding support for POST array validation (via callbacks only)
Added an "integer" rule into the Validation library.
- Added valid_base64() to the Validation library.
+ Added valid_base64() to the Validation library.
+ Documented clear() in the Image Processing library.
Changed the behaviour of custom callbacks so that they no longer trigger the "required" rule.
Modified Upload class $_FILES error messages to be more precise.
Moved the safe mode and auth checks for the Email library into the constructor.
@@ -165,6 +166,7 @@ Change Log
Removed an unused parameter from Profiler (#3332).
Fixed a bug (#3314) which would cause the top level path to be deleted in delete_files() of the File helper.
Fixed a bug (#2858) which referenced a wrong variable in the Image class.
+ Fixed a bug (#3024) in which master_dim wasn't gettitng reset by clear() in the Image library.
Fixed a bug (#3330) in the FTP class where a comparison wasn't getting made.
Fixed a bug (#3328) where the smiley helper might return an undefined variable.
Fixed a bug (#3310) with sanitization of globals in the Input class that could unset CI's global variables.
diff --git a/user_guide/libraries/image_lib.html b/user_guide/libraries/image_lib.html
index 8566f5a41..ac5e87701 100644
--- a/user_guide/libraries/image_lib.html
+++ b/user_guide/libraries/image_lib.html
@@ -122,6 +122,7 @@ folder containing the image files must have file permissions of 777.
$this->image_lib->crop()
$this->image_lib->rotate()
$this->image_lib->watermark()
+$this->image_lib->clear()
These functions return boolean TRUE upon success and FALSE for failure. If they fail you can retrieve the
@@ -413,6 +414,9 @@ if ( ! $this->image_lib->rotate())
+
$this->image_lib->clear()
+The clear function resets all of the values used when processing an image. You will want to call this if you are processing images in a loop.
+$this->image_lib->clear();
Image Watermarking
@@ -643,8 +647,6 @@ will be positioned at the bottom/center of the image, 20 pixels from the bottom
-
-
--
cgit v1.2.3-24-g4f1b