swissup/module-image
最新稳定版本:1.0.7
Composer 安装命令:
composer require swissup/module-image
包简介
Detect image dimensions
README 文档
README
swissup/module-image - is a Magento module to calculate image dimensions
using PHP. It uses getimagesize function when image is found in filesystem,
otherwise uses fallback to marc1706/fast-image-size
library. Supported formats: bmp, gif, ico, iff, jp2, jpeg, png, psd, svg, tif,
wbmpm, webp.
Installation
composer require swissup/module-image bin/magento setup:upgrade
Usage
use Swissup\Image\Helper\Dimensions; $this->dimensions->getWidth($imageUrl); // 600 $this->dimensions->getHeight($imageUrl); // 400 $this->dimensions->getDimensions($imageUrl); // ['width' => 600, 'height' => 400]
统计信息
- 总下载量: 138.97k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-07-15