Imagine扩展2.0.4版本发布 [资讯]

作者:上班偷偷打酱油 发布于:2016-09-12 浏览:475次 收藏

版本发布时间:2016/09/04

我们非常荣幸的宣布Imagine扩展2.0.4正式发布

更新了Image::thumbnail()可以在指定长宽的情况下,根据原图的的长宽比例自由缩放

Image::$thumbnailBackgroundColor和Image::$thumbnailBackgroundAlpha参数可以配置缩略图的颜色

详情查看更新日志

请注意,这可能是2.0.x的最后一个版本且有可能不支持向后兼容。下一个版本将是2.1.x,如果你想停留在2.0.x版本请注意更新composer.json中的配置为~2.0.0


原文:

SEP 4, 2016

We are very pleased to announce the release of the Imagine extension version 2.0.4.

The only change is that Image::thumbnail() could now automatically calculate thumbnail dimensions based on aspect ratio of original image if only width or only height is specified. Image::$thumbnailBackgroundColor and Image::$thumbnailBackgroundAlpha are introduced to be able to configure fill color of thumbnails.

See the CHANGELOG for a complete list of changes.

Note that it's likely that it is the last 2.0.x release and the next one will be 2.1.x which may break backwards compatibility. Make sure you have ~2.0.0 in your composer.json if you want to stay on 2.0.x releases.


如果文章对您有所帮助,希望继续支持我们,您的支持是我们最大的动力 ¥打赏
声明:文章内容由作者原创或整理,未经允许,不得转载!
您需要登录后才可以评论。登录 | 立即注册