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

layer effect #35

Open
wants to merge 32 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
2155abc
Update ImageWorkshopLayer.php
GoodLittleDev Feb 5, 2014
dc818a0
Update ImageWorkshopLayer.php
GoodLittleDev Feb 5, 2014
422fbbf
Update ImageWorkshopLayer.php
GoodLittleDev Feb 5, 2014
d5bb6e9
Update ImageWorkshopLayer.php
GoodLittleDev Feb 5, 2014
82e405c
Update ImageWorkshopLayer.php
GoodLittleDev Feb 5, 2014
e137ecb
Update ImageWorkshopLayer.php
GoodLittleDev Feb 5, 2014
edf35ab
Update ImageWorkshopLayer.php
GoodLittleDev Feb 5, 2014
3e43310
Update ImageWorkshopLayer.php
GoodLittleDev Feb 5, 2014
aafd614
Update ImageWorkshopLayer.php
GoodLittleDev Feb 5, 2014
455361e
Update ImageWorkshopLayer.php
GoodLittleDev Feb 5, 2014
b30065d
Update ImageWorkshopLayer.php
GoodLittleDev Feb 5, 2014
551f57b
move Effects Into own libary injecting layers into effects
GoodLittleDev Mar 6, 2014
88f8a04
adjusted the readme
GoodLittleDev Mar 6, 2014
033fe7e
adjusted the readme
GoodLittleDev Mar 6, 2014
487e832
adjusted the readme
GoodLittleDev Mar 6, 2014
42fb804
adjusted the readme
GoodLittleDev Mar 6, 2014
84fb9b0
adjusted the readme
GoodLittleDev Mar 6, 2014
ce3b05d
adjusted the readme
GoodLittleDev Mar 6, 2014
601a55e
remove extracted Effects (working on solution)
GoodLittleDev May 6, 2014
b9db84e
added EnableAlpha ( = true/false, = true/false)
GoodLittleDev May 6, 2014
e1b8c15
Update README.md
GoodLittleDev May 7, 2014
f539358
Update README.md
GoodLittleDev May 7, 2014
7cde389
Update README.md
GoodLittleDev May 7, 2014
c093bf8
Update README.md
GoodLittleDev May 7, 2014
149e433
added EnableAlpha ( = true/false, = true/false)
GoodLittleDev May 7, 2014
defc308
added EnableAlpha ( = true/false, = true/false)
GoodLittleDev May 7, 2014
cbe2694
added setTransparentColor Function
GoodLittleDev May 8, 2014
183f262
added setTransparentColor Function
GoodLittleDev May 8, 2014
60d029e
added setTransparentColor Function
GoodLittleDev May 8, 2014
af82408
added setTransparentColor Function
GoodLittleDev May 8, 2014
4487077
add loaders if file is not loaded
GoodLittleDev May 9, 2014
7fee153
add loaders if file is not loaded
GoodLittleDev May 9, 2014
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
51 changes: 50 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,58 @@
### Summary and features
Really flexible and easy-to-use PHP class to work with images using the GD Library

Included Layer Effects.

http://phpimageworkshop.com/

### Latest updates
**Version 2.0.8.1 - 2014-5-6**
- Updated includeds to allow load files if the main class is not already defined (like autoloading except), if you still wish to auto load (inorder to add custom load files) then just comment out
```php

if (!class_exists('classname')) {
require_once(pathandfilename.php');
}

// example :
if (!class_exists('ImageWorkshopLayer')) { // auto loads if not already loaded.
require_once(__DIR__.'/Core/ImageWorkshopLayer.php');
}

```


**Version 2.0.8 - 2014-5-6**
- removed Layer Effect class and merged back into main Layer Class(Working to resolve issues with extracted effects).
- add new enableAlpha method: the first argument turns on alpha blending for graphic manipuation, the second turns on alpha blending when saving image (this prevents the black background).
- add new setTransparentColor method: the first three arguments are RBG values of the color the forth is the tolerance so colors +/- the tolerance will also be made transparent the fifth argument is optional and it locks the tolerance so that only color with the same hue and saturation as the base color will be altered, optional feather by tolerance true/false is the sixth argument. this cause the degree of transpanancy to Decay futher the color differs from the base color.
```php

$layer->enabeAlpha($blend,$save);
example:
$layer->enabeAlpha(true,true);

$layer->setTransparentColor($r,$g,$b,$tolerance,$Lock,$feather);
example:
$layer->setTransparentColor(0,0,0,7,false,true);
```

**Version 2.0.7 - 2014-3-6**

- Move Layer effect into there own class, allowing you to use your own effects libaries.

- Added Extended_Effects method which request Effect name, EffectsLib object , and if it should apply recursively.

**Version 2.0.7 - 2014-2-5**
- Forked
- Added Layer Effect:
- applyFilter
- applyImageConvolution
- toGreyscale
- applyAlphaMask
- splitChannels
- getChannel
- mergeChannels

**Version 2.0.5 - 2013-11-12**

Expand Down Expand Up @@ -95,4 +144,4 @@ The class is designed for PHP 5.3+, but it can work with older PHP versions... C

### @todo
- Adding a method to add easily borders to a layer (external, inside and middle border)
- Check given hexa' color and remove # if exists.
- Check given hexa' color and remove # if exists.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
use PHPImageWorkshop\Exception\ImageWorkshopBaseException as ImageWorkshopBaseException;

// If no autoloader, uncomment these lines:
//require_once(__DIR__.'/../../Exception/ImageWorkshopBaseException.php');

if (!class_exists('ImageWorkshopBaseException')) { // auto loads if not already loaded.
require_once(__DIR__.'/../../Exception/ImageWorkshopBaseException.php');
}


/**
* ImageWorkshopLayerException
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
use PHPImageWorkshop\Exception\ImageWorkshopBaseException as ImageWorkshopBaseException;

// If no autoloader, uncomment these lines:
//require_once(__DIR__.'/../../Exception/ImageWorkshopBaseException.php');

if (!class_exists('ImageWorkshopBaseException')) {
require_once(__DIR__.'/../../Exception/ImageWorkshopBaseException.php');
}


/**
* ImageWorkshopLibException
Expand Down
Loading