summaryrefslogtreecommitdiffstats
path: root/user_guide/libraries/image_lib.html
diff options
context:
space:
mode:
Diffstat (limited to 'user_guide/libraries/image_lib.html')
-rw-r--r--user_guide/libraries/image_lib.html18
1 files changed, 9 insertions, 9 deletions
diff --git a/user_guide/libraries/image_lib.html b/user_guide/libraries/image_lib.html
index f2a7a5554..c49cad318 100644
--- a/user_guide/libraries/image_lib.html
+++ b/user_guide/libraries/image_lib.html
@@ -12,7 +12,7 @@
<script type="text/javascript" src="../nav/moo.fx.js"></script>
<script type="text/javascript">
window.onload = function() {
- myHeight = new fx.Height('nav', {duration: 400});
+ myHeight = new fx.Height('nav', {duration: 400});
myHeight.hide();
}
</script>
@@ -75,9 +75,9 @@ Image Manipulation Class
<p>All three major image libraries are supported: GD/GD2, NetPBM, and ImageMagick</p>
-<p class="important"><strong>Note:</strong> Watermarking is only available using the GD/GD2 library.
+<p class="important"><strong>Note:</strong> Watermarking is only available using the GD/GD2 library.
In addition, even though other libraries are supported, GD is required in
-order for the script to calculate the image properties. The image processing, however, will be performed with the
+order for the script to calculate the image properties. The image processing, however, will be performed with the
library you specify.</p>
@@ -110,7 +110,7 @@ $this->image_lib->resize();</code>
<p>The above code tells the <dfn>image_resize</dfn> function to look for an image called <em>mypic.jpg</em>
located in the <dfn>source_image</dfn> folder, then create a thumbnail that is 75 X 50 pixels using the GD2 <dfn>image_library</dfn>.
-Since the <dfn>maintain_ratio</dfn> option is enabled, the thumb will be as close to the target <dfn>width</dfn> and
+Since the <dfn>maintain_ratio</dfn> option is enabled, the thumb will be as close to the target <dfn>width</dfn> and
<dfn>height</dfn> as possible while preserving the original aspect ratio. The thumbnail will be called <em>mypic_thumb.jpg</em>
</p>
@@ -316,7 +316,7 @@ will NOT need to use the <dfn>$this->image_lib->initialize</dfn> function if you
<h2>$this->image_lib->resize()</h2>
-<p>The image resizing function lets you resize the original image, create a copy (with or without resizing),
+<p>The image resizing function lets you resize the original image, create a copy (with or without resizing),
or create a thumbnail image.</p>
<p>For practical purposes there is no difference between creating a copy and creating
@@ -355,7 +355,7 @@ target the original image for processing.</p>
<h2>$this->image_lib->crop()</h2>
-<p>The cropping function works nearly identically to the resizing function except it requires that you set
+<p>The cropping function works nearly identically to the resizing function except it requires that you set
preferences for the X and Y axis (in pixels) specifying where to crop, like this:</p>
<code>$config['x_axis'] = '100';<br />
@@ -380,8 +380,8 @@ if ( ! $this->image_lib->crop())<br />
}</code>
-<p>Note: Without a visual interface it is difficult to crop images, so this function is not very useful
-unless you intend to build such an interface. That's exactly what we did using for the photo
+<p>Note: Without a visual interface it is difficult to crop images, so this function is not very useful
+unless you intend to build such an interface. That's exactly what we did using for the photo
gallery module in ExpressionEngine, the CMS we develop. We added a JavaScript UI that lets the cropping
area be selected.</p>
@@ -430,7 +430,7 @@ if ( ! $this->image_lib->rotate())<br />
<ul>
<li><strong>Text</strong>: The watermark message will be generating using text, either with a True Type font that you specify, or
-using the native text output that the GD library supports. If you use the True Type version your GD installation
+using the native text output that the GD library supports. If you use the True Type version your GD installation
must be compiled with True Type support (most are, but not all).</li>
<li><strong>Overlay</strong>: The watermark message will be generated by overlaying an image (usually a transparent PNG or GIF)