yurkinx / yii2-image

Yii2 Framework extension for image manipulating using Kohana Image Library
65 stars 35 forks source link

use \Imagick in drivers/Kohana/Image/Imagick.php #4

Closed tpoxa closed 9 years ago

tpoxa commented 10 years ago

PHP Fatal error: Class 'yii\image\drivers\Imagick' not found in /var/www/..../webapp/vendor/yurkinx/yii2-image/yii/image/drivers/Kohana/Image/Imagick.php on line 54 PHP Fatal Error 'yii\base\ErrorException' with message 'Class 'yii\image\drivers\Imagick' not found'

tpoxa commented 10 years ago

and \ImagickPixel too

Thanks

makcsv commented 10 years ago

Had the same problem, fixed it by prepending all "Imagick" and "ImagickPixel" calls with "\" in app/vendor/yurkinx/yii2-image/yii/image/drivers/Kohana/Image/Imagick.php

tpoxa commented 10 years ago

Yes, me too, but changing vendor files not very good way to work...

stratigos commented 10 years ago

I also have the same issue. I happened to note this in the yii2 changelog:

108: - Bug: Fixed Object of class Imagick could not be converted to string in CaptchaAction (eXprojects, cebe)

Is it possible that there is a yii2 package, outside of yurkinx's package, that is required to have this class available?

stratigos commented 10 years ago

interim solution described by @makcsv works for now