Skip to content

Commit

Permalink
release version 2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
samdark committed Nov 3, 2016
1 parent 6177f82 commit 59dcd0b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 deletions.
22 changes: 10 additions & 12 deletions BaseImage.php
Expand Up @@ -35,12 +35,10 @@ class BaseImage
* GD2 driver definition for Imagine implementation using the GD library.
*/
const DRIVER_GD2 = 'gd2';

/**
* imagick driver definition.
*/
const DRIVER_IMAGICK = 'imagick';

/**
* gmagick driver definition.
*/
Expand All @@ -51,12 +49,12 @@ class BaseImage
* If the latter, the first available driver will be used.
*/
public static $driver = [self::DRIVER_GMAGICK, self::DRIVER_IMAGICK, self::DRIVER_GD2];

/**
* @var ImagineInterface instance.
*/
private static $_imagine;


/**
* @var string background color to use when creating thumbnails in `ImageInterface::THUMBNAIL_INSET` mode with
* both width and height specified. Default is white.
Expand Down Expand Up @@ -162,8 +160,8 @@ protected static function ensureImageInterfaceInstance($image)
* ~~~
*
* @param string|resource|ImageInterface $image either ImageInterface, resource or a string containing file path
* @param integer $width the crop width
* @param integer $height the crop height
* @param int $width the crop width
* @param int $height the crop height
* @param array $start the starting point. This must be an array with two elements representing `x` and `y` coordinates.
* @return ImageInterface
* @throws InvalidParamException if the `$start` parameter is invalid
Expand All @@ -181,7 +179,7 @@ public static function crop($image, $width, $height, array $start = [0, 0])

/**
* Rotates an image automatically based on EXIF information.
*
*
* @param string|resource|ImageInterface $image either ImageInterface, resource or a string containing file path
* @param string $color
* @return \Imagine\Image\ImageInterface
Expand Down Expand Up @@ -211,8 +209,8 @@ public static function autorotate($image, $color = '000000')
* [[Image::$thumbnailBackgroundColor]] and [[Image::$thumbnailBackgroundAlpha]].
*
* @param string|resource|ImageInterface $image either ImageInterface, resource or a string containing file path
* @param integer $width the width in pixels to create the thumbnail
* @param integer $height the height in pixels to create the thumbnail
* @param int $width the width in pixels to create the thumbnail
* @param int $height the height in pixels to create the thumbnail
* @param string $mode mode of resizing original image to use in case both width and height specified
* @return ImageInterface
*/
Expand Down Expand Up @@ -321,9 +319,9 @@ public static function text($image, $text, $fontFile, array $start = [0, 0], arr
/**
* Adds a frame around of the image. Please note that the image size will increase by `$margin` x 2.
* @param string|resource|ImageInterface $image either ImageInterface, resource or a string containing file path
* @param integer $margin the frame size to add around the image
* @param int $margin the frame size to add around the image
* @param string $color the frame color
* @param integer $alpha the alpha value of the frame.
* @param int $alpha the alpha value of the frame.
* @return ImageInterface
*/
public static function frame($image, $margin = 20, $color = '666', $alpha = 100)
Expand Down Expand Up @@ -351,8 +349,8 @@ public static function frame($image, $margin = 20, $color = '666', $alpha = 100)
* automatically based on width to height ratio of original image box.
*
* @param BoxInterface $sourceBox original image box
* @param integer $width thumbnail width
* @param integer $height thumbnail height
* @param int $width thumbnail width
* @param int $height thumbnail height
* @return BoxInterface thumbnail box
*
* @since 2.0.4
Expand Down
8 changes: 4 additions & 4 deletions CHANGELOG.md
@@ -1,16 +1,16 @@
Yii Framework 2 imagine extension Change Log
================================================

2.1.0 under development
-----------------------
2.1.0 November 3, 2016
----------------------

- Enh #2: ImageInterface objects are now supported as image files (samdark)
- Enh #11: Resources are now supported as image files (samdark)
- Enh #20: Upgraded the imagine library from 0.5.x to 0.6.x.
In order to upgrade to 0.6.x the color behavior had to be
changed. In addition a new `autorotate` method has been implemented
in order to rotate images based in the EXIF informations provided
inside the image (nadar)
- Enh #2: ImageInterface objects are now supported as image files (samdark)
- Enh #11: Resources are now supported as image files (samdark)

2.0.4 September 4, 2016
-----------------------
Expand Down

0 comments on commit 59dcd0b

Please sign in to comment.