From 6d504e1928f8638fabbd1ead84ce140d9fabf237 Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Mon, 26 May 2008 02:34:43 +0000 Subject: grammar, typo and example corrections --- user_guide/libraries/image_lib.html | 14 +++++++------- user_guide/libraries/loader.html | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'user_guide') diff --git a/user_guide/libraries/image_lib.html b/user_guide/libraries/image_lib.html index 8fd751317..06e586962 100644 --- a/user_guide/libraries/image_lib.html +++ b/user_guide/libraries/image_lib.html @@ -110,7 +110,7 @@ Since the maintain_ratio option is enabled, the thumb will be as clos

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.

Processing Functions

@@ -305,7 +305,7 @@ preferences have no effect on cropping. The "availability" column indicates whi

Setting preferences in a config file

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.

Creating a Thumbnail

-

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.

Watermarking an 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 wm_type text -type, overlay +text, overlay Sets the type of watermarking that should be used. diff --git a/user_guide/libraries/loader.html b/user_guide/libraries/loader.html index 8cf5478e8..ea347cb54 100644 --- a/user_guide/libraries/loader.html +++ b/user_guide/libraries/loader.html @@ -105,7 +105,7 @@ to your browser. Remember to assign it to a variable if you want the data retur

$this->load->model('Model_name');

$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