Releases: claviska/SimpleImage
Releases · claviska/SimpleImage
3.0.1
SimpleImage 3.0 ✨
Requirements
- PHP 5.6+
- GD extension
Differences from SimpleImage 2.x
- Normalized color arguments (colors can be a CSS color name, hex color, or RGB(A) array).
- Normalized alpha (opacity) arguments: 0 (transparent) - 1 (opaque)
- Added text shadow to
text
method. - Added
arc
method for drawing arcs. - Added
border
method for drawing borders. - Added
dot
method for drawing individual pixels. - Added
ellipse
method for drawing ellipses and circles. - Added
line
method for drawing lines. - Added
polygon
method for drawing polygons. - Added
rectangle
method for drawing rectangles. - Added
roundedRectangle
method for drawing rounded rectangles. - Added
adjustColor
method for modifying RGBA color channels to create relative color variations. - Added
darkenColor
method to darken a color. - Added
lightenColor
method to lighten a color. - Changed namespace from
abeautifulsite
toclaviska
. - Changed
create
method tofromNew
. - Changed
load
method tofromFile
. - Changed
load_base64
method tofromDataUri
. - Changed
output
method totoScreen
.x - Changed
output_base64
method totoDataUri
. - Changed
save
method totoFile
. - Changed
text
method to accept an array of options instead of tons of arguments. - Removed text stroke from
text
method because it produced dirty results and didn't support transparency. - Removed
smooth
method because its arguments in the PHP manual aren't documented well. - Removed deprecated method
adaptive_resize
(usethumbnail
instead). - Removed
get_meta_data
(usegetExif
,getHeight
,getMime
,getOrientation
, andgetWidth
instead). - Added .editorconfig file. Please make sure your editor supports these settings before submitting contributions.
- Switched from four spaces to two for indentations (sorry PHP-FIG!).
- Switched from underscore_methods to camelCaseMethods.
- Organized methods into groups based on function
- Removed PHPDoc comments. At this time, I don't wish to incorporate them into the library.