@@ -9,97 +9,6 @@ Really flexible and easy-to-use PHP class to work with images using the GD Libra
9
9
10
10
http://phpimageworkshop.com/
11
11
12
- ### Latest updates
13
-
14
- ** Version 2.0.9 - 2015-07-05**
15
-
16
- - Fix ImageWorkshop::initFromPath with remote URL
17
-
18
- ** Version 2.0.8 - 2015-06-01**
19
-
20
- - Fix exception code when file not found
21
-
22
- ** Version 2.0.7 - 2015-03-22**
23
-
24
- - Allow ` ImageWorkshop::initFromPath ` factory working with remote URL
25
- - Improve PHP >= 5.5 compatibility
26
- - Add ` fixOrientation ` method to layer to change image orientation based on EXIF orientation data
27
- - Fix background color when value is setting to "000000"
28
-
29
- ** Version 2.0.6 - 2014-08-01**
30
-
31
- @jasny (https://github.com/jasny ) contribution, new methods :
32
-
33
- * ` ImageWorkshopLayer::resizeToFit() ` resizes an image to fit a bounding box.
34
- * ` ImageWorkshopLayer::cropToAspectRatio() ` crops either to width or height of the document to match the aspect ratio.
35
-
36
- Documentation here : https://github.com/Sybio/ImageWorkshop/pull/37#issue-28704248
37
-
38
- ** Version 2.0.5 - 2013-11-12**
39
-
40
- - Implementing interlace mode (http://php.net/manual/en/function.imageinterlace.php ) on save() method to display progessive JPEG image
41
-
42
- ``` php
43
- $interlace = true; // set true to enable interlace, false by default
44
- $layer->save($dirPath, $filename, $createFolders, $backgroundColor, $imageQuality, $interlace);
45
- ```
46
-
47
- Thanks @dripolles (https://github.com/dripolles ) & @johnhunt (https://github.com/johnhunt )
48
-
49
- ** Version 2.0.4 - 2013-09-11**
50
-
51
- - Fix a major bug when resizing both sides AND conserving proportion : layer stack problem (current layer has a new
52
- nested level in its stack, not expected), and translations with positionX and positionY are wrong.
53
- Fixed.
54
- (Initial problem : https://github.com/Sybio/ImageWorkshop/pull/14 )
55
- - Add a parameter to clearStack() method
56
-
57
- ** Version 2.0.2 - 2013-06-14**
58
-
59
- - Fix a new bug : when resizing or cropping, small images can have 0 pixel of width or height (because of round), which
60
- is impossible and script crashes. Now width and height are 1 pixel minimum.
61
-
62
- Note:
63
-
64
- ``` php
65
- $layer->resizeInPixel(null, 0 /* or negative number */, null);
66
- ```
67
-
68
- It will generate a 1 pixel height image, not 0.
69
-
70
- ** Version 2.0.1 - 2013-06-03**
71
-
72
- - Fix an opacity bug : pure black color (#000000 ) always displayed fully transparent (from 0 to 99% opacity). Bug fixed ! (no known bug anymore)
73
- - Add some Exceptions to help debugging
74
-
75
- ** Version 2.0.0 - 2012-11-21**
76
-
77
- New version of ImageWorkshop ! The library is now divided in 3 main classes for cleaned code:
78
- - ImageWorkshopLayer: the class which represents a layer, that you manipulate
79
- - ImageWorkshop: a factory that is used to generate layers
80
- - ImageWorkshopLib: a class containing some tools (for calculations, etc...), used by both classes
81
-
82
- Technically, only the initialization change compared with the 1.3.x versions, check the documentation:
83
- http://phpimageworkshop.com/documentation.html#chapter-initialization-of-a-layer
84
-
85
- Here an example, before and now:
86
- ``` php
87
- // before
88
- $layer = new ImageWorkshop(array(
89
- 'imageFromPath' => '/path/to/images/picture.jpg',
90
- ));
91
- ```
92
-
93
- ``` php
94
- // now
95
- $layer = ImageWorkshop::initFromPath('/path/to/images/picture.jpg');
96
- ```
97
-
98
- And also the installation of the class: http://phpimageworkshop.com/installation.html
99
-
100
- The documentation has been updated, you can now check the documentation of each version since 1.3.3:
101
- (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 )
102
-
103
12
### Installation
104
13
105
14
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
@@ -109,6 +18,7 @@ The class is designed for PHP 5.3+, but it can work with older PHP versions... C
109
18
- Learn how to use the class in 5 minutes: http://phpimageworkshop.com/quickstart.html
110
19
- The complete documentation: http://phpimageworkshop.com/documentation.html
111
20
- Usefull tutorials: http://phpimageworkshop.com/tutorials.html
21
+ - Changelog: [ CHANGELOG.md] ( CHANGELOG.md )
112
22
113
23
** What's new in the doc' ?**
114
24
0 commit comments