Skip to content

Commit 0285c60

Browse files
committed
New version: 2.0.0
1 parent 29926c0 commit 0285c60

16 files changed

+3133
-3008
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ php:
44
- 5.3
55
- 5.4
66

7-
script: phpunit tests/ImageWorkshopTest.php
7+
script: phpunit tests/

LICENCE.txt

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Copyright (c) 2012 Clément Guillemain (@Sybio01)
2+
3+
http://en.wikipedia.org/wiki/MIT_License
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is furnished
10+
to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

README.md

+27-6
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,33 @@ http://phpimageworkshop.com/
1111

1212
### Latest updates
1313

14+
**Version 2.0.0 - 2012-11-21**
15+
New version of ImageWorkshop ! The library is now divided in 3 main classes for cleaned code:
16+
- ImageWorkshopLayer: the class which represents a layer, that you manipulate
17+
- ImageWorkshop: a factory that is used to generate layers
18+
- ImageWorkshopLib: a class containing some tools (for calculations, etc...), used by both classes
19+
20+
Technically, only the initialization change compared with the 1.3.x versions, check the documentation:
21+
http://phpimageworkshop.com/documentation.html#chapter-initialization-of-a-layer
22+
23+
Here an example, before and now:
24+
```php
25+
// before
26+
$layer = new ImageWorkshop(array(
27+
'imageFromPath' => '/path/to/images/picture.jpg',
28+
));
29+
```
30+
31+
```php
32+
// now
33+
$layer = ImageWorkshop::initFromPath('/path/to/images/picture.jpg');
34+
```
35+
36+
And also the installation of the class: http://phpimageworkshop.com/installation.html
37+
38+
The documentation has been updated, you can now check the documentation of each version since 1.3.3:
39+
(Ex: http://phpimageworkshop.com/doc/9/initialize-from-an-image-file.html?version=2.0.0, http://phpimageworkshop.com/doc/9/initialize-from-an-image-file.html?version=1.3.3)
40+
1441
**Version 1.3.4 - 2012-11-20**
1542
- Renaming "Pourcent" occurrences for "Percent"
1643
For example, the method resizeInPourcent() is now named resizeInPercent().
@@ -46,12 +73,6 @@ and can show display bugs ! I'm trying to find a solution.
4673
- You can now find tests status of the class on travis-ci: http://travis-ci.org/#!/Sybio/ImageWorkshop
4774
- Adding ImageWorkshop on http://travis-ci.org/ for controlled continuous integration
4875

49-
**Version 1.2.5 - 2012-09-18**
50-
- Fixing the only one known bug that we are tracking for a long time: you can know
51-
apply a rotation (->rotate()) and then an opacity (->opacity()) on a layer without crash.
52-
- Updating composer.json to autoload the class in a project using composer
53-
- Testing if the PHP environment has GD library enabled
54-
5576
### Installation
5677

5778
The class is designed for PHP 5.3+, but it can work with older PHP versions... Check how to install the class here: http://phpimageworkshop.com/installation.html
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
namespace PHPImageWorkshop\Core\Exception;
4+
5+
use PHPImageWorkshop\Exception\ImageWorkshopBaseException as ImageWorkshopBaseException;
6+
7+
// If no autoloader, uncomment these lines:
8+
//require_once(__DIR__.'/../../Exception/ImageWorkshopBaseException.php');
9+
10+
/**
11+
* ImageWorkshopLayerException
12+
*
13+
* Manage ImageWorkshopLayer exceptions
14+
*
15+
* @link http://phpimageworkshop.com
16+
* @author Sybio (Clément Guillemain / @Sybio01)
17+
* @license http://en.wikipedia.org/wiki/MIT_License
18+
* @copyright Clément Guillemain
19+
*/
20+
class ImageWorkshopLayerException extends ImageWorkshopBaseException
21+
{
22+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
namespace PHPImageWorkshop\Core\Exception;
4+
5+
use PHPImageWorkshop\Exception\ImageWorkshopBaseException as ImageWorkshopBaseException;
6+
7+
// If no autoloader, uncomment these lines:
8+
//require_once(__DIR__.'/../../Exception/ImageWorkshopBaseException.php');
9+
10+
/**
11+
* ImageWorkshopLibException
12+
*
13+
* Manage ImageWorkshopLib exceptions
14+
*
15+
* @link http://phpimageworkshop.com
16+
* @author Sybio (Clément Guillemain / @Sybio01)
17+
* @license http://en.wikipedia.org/wiki/MIT_License
18+
* @copyright Clément Guillemain
19+
*/
20+
class ImageWorkshopLibException extends ImageWorkshopBaseException
21+
{
22+
}

0 commit comments

Comments
 (0)