Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos #189

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Adapter/Common.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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
*/
Expand Down
2 changes: 1 addition & 1 deletion GarbageCollect.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>
Expand Down
12 changes: 6 additions & 6 deletions Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ public function setFallback($fallback = null)
}

/**
* Gets the fallack image path.
* Gets the fallback image path.
*/
public function getFallback()
{
Expand Down Expand Up @@ -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()
{
Expand Down Expand Up @@ -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.
*
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 = '')
{
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion Source/Source.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion demo/watermark.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
2 changes: 1 addition & 1 deletion doc/generate.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down