diff --git a/Adapter/Common.php b/Adapter/Common.php index d8be5f3..4ca3f03 100644 --- a/Adapter/Common.php +++ b/Adapter/Common.php @@ -142,9 +142,9 @@ public function fixOrientation() /** * Apply orientation using Exif orientation value. */ - public function applyExifOrientation($exif_orienation) + public function applyExifOrientation($exif_orientation) { - switch ($exif_orienation) { + switch ($exif_orientation) { case 1: break; @@ -332,7 +332,7 @@ public function resize($width = null, $height = null, $background = 'transparent } /** - * Trim background color arround the image. + * Trim background color around the image. * * @param int $bg the background */ diff --git a/GarbageCollect.php b/GarbageCollect.php index 548ddfc..efec1bc 100644 --- a/GarbageCollect.php +++ b/GarbageCollect.php @@ -3,7 +3,7 @@ namespace Gregwar\Image; /** - * Garbage collect a directory, this will crawl a directory, lookng + * Garbage collect a directory, this will crawl a directory, looking * for files older than X days and destroy them. * * @author Gregwar diff --git a/Image.php b/Image.php index c3e2530..e896c02 100644 --- a/Image.php +++ b/Image.php @@ -269,7 +269,7 @@ public function setFallback($fallback = null) } /** - * Gets the fallack image path. + * Gets the fallback image path. */ public function getFallback() { @@ -332,8 +332,8 @@ public function setAdapter($adapter) /** * Get the file path. * - * @return mixed a string with the filen name, null if the image - * does not depends on a file + * @return mixed a string with the file name, null if the image + * does not depend on a file */ public function getFilePath() { @@ -456,7 +456,7 @@ public function getHash($type = 'guess', $quality = 80) } /** - * Gets the cache file name and generate it if it does not exists. + * Gets the cache file name and generate it if it does not exist. * Note that if it exists, all the image computation process will * not be done. * @@ -493,7 +493,7 @@ public function cacheFile($type = 'jpg', $quality = 80, $actual = false) $cacheFile .= '.'.$type; - // If the files does not exists, save it + // If the file does not exist, save it $image = $this; // Target file should be younger than all the current image @@ -757,7 +757,7 @@ public function inline($type = 'jpg', $quality = 80) } /** - * Creates an instance, usefull for one-line chaining. + * Creates an instance, usefully for one-line chaining. */ public static function open($file = '') { diff --git a/README.md b/README.md index 385b726..5a08b0e 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ Here are the resize methods: ![forceResize()](doc/forceResize.jpg) * `cropResize($width, $height, $background)`: resizes the image preserving scale (just like `resize()`) - and croping the whitespaces: + and cropping the whitespaces: ![cropResize()](doc/cropResize.jpg) @@ -107,7 +107,7 @@ The other methods available are: * `circle($cx, $cy, $r, $color, $filled=false)`: draws a circle -* `fillBackground($bg=0xffffff)`: fills the background of a transparent image to the 'bg' color +* `fillBackground($bg=0xffffff)`: fills the background with a transparent image to the 'bg' color * `fixOrientation()`: return the image rotated and flipped using image exif information diff --git a/Source/Source.php b/Source/Source.php index 8ff69d7..1d9e271 100644 --- a/Source/Source.php +++ b/Source/Source.php @@ -24,7 +24,7 @@ public function correct() } /** - * Returns information about images, these informations should + * Returns information about images, these information should * change only if the original image changed. */ public function getInfos() diff --git a/demo/watermark.php b/demo/watermark.php index 3e7f241..b606359 100644 --- a/demo/watermark.php +++ b/demo/watermark.php @@ -10,7 +10,7 @@ // Opening vinci.png $watermark = Image::open('img/vinci.png'); -// Mergine vinci text into mona in the top-right corner +// Merging vinci text into mona in the top-right corner $img->merge($watermark, $img->width()-$watermark->width(), $img->height()-$watermark->height()) ->save('out.jpg', 'jpg'); diff --git a/doc/generate.php b/doc/generate.php index 8740f8a..22bfc73 100644 --- a/doc/generate.php +++ b/doc/generate.php @@ -10,7 +10,7 @@ ->save('resize.jpg'); // scaleResize() will also preserve the scale, but won't -// enlage the image +// enlarge the image Image::open('mona.jpg') ->scaleResize(250, 250, 'red') ->save('scaleResize.jpg');