Hello all. I installed Imagine how this post says:
How to Use Imagine
This created some folders in my project:
vendor/yiisoft/yii2-imagine
- BaseImage.php -> (handle all the image process, thumbnails, etc..) -> namespace yii\imagine;
- Image.php (extends BaseImage) -> namespace yii\imagine;
vendor/imagine/imagine/libs/Imagine/Image/ManipulatorInterface.php
*A lot of more classes in this imagine folder
I am getting this error when I try use thumbnail method:
If I go to the target line, I see an use of ManipulatorInterface:
public static function thumbnail($filename, $width, $height, $mode = ManipulatorInterface::THUMBNAIL_OUTBOUND)
I check that Manipulator interface exists in my project and have a "use" sentence in BaseImage.php
use Imagine\Image\ManipulatorInterface;
Any knows why cant found ManipulatorInterface class? If I press Control + MouseClick I can enter in it, so the IDE (phpStorm) is enoughly intelligent to find it.
my composer.json have this relevant lines:
"require": {
"php": ">=5.4.0",
"yiisoft/yii2": ">=2.0.5",
"yiisoft/yii2-bootstrap": "*",
"yiisoft/yii2-swiftmailer": "*",
"yiisoft/yii2-imagine": "*"
},
My composer.lock have this relevant lines:
{
"name": "imagine/imagine",
"version": "0.5.x-dev",
"source": {
"type": "git",
"url": "https://github.com/avalanche123/Imagine.git",
"reference": "343580fceed1f89220481ac98480e92f47d91e6c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/avalanche123/Imagine/zipball/343580fceed1f89220481ac98480e92f47d91e6c",
"reference": "343580fceed1f89220481ac98480e92f47d91e6c",
"shasum": ""
},
"require": {
"php": ">=5.3.2"
},
"require-dev": {
"sami/sami": "dev-master"
},
"suggest": {
"ext-gd": "to use the GD implementation",
"ext-gmagick": "to use the Gmagick implementation",
"ext-imagick": "to use the Imagick implementation"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-develop": "0.5-dev"
}
},
"autoload": {
"psr-0": {
"Imagine": "lib/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Bulat Shakirzyanov",
"email": "mallluhuct@gmail.com",
"homepage": "http://avalanche123.com"
}
],
"description": "Image processing for PHP 5.3",
"homepage": "http://imagine.readthedocs.org/",
"keywords": [
"drawing",
"graphics",
"image manipulation",
"image processing"
],
"time": "2014-06-13 10:54:04"
},
Thanks.