मैं चित्र काटने के मॉड्यूल पर काम कर रहा हूँ में नहीं मिला, मैं तो मैं इस समारोहक्लास 'कल्पना कीजिए गोलों का अंतर कल्पना कीजिए' yii2
$image = Image::getImagine()->open($path);
$size = $image->getSize();
उपयोग कर रहा हूँ इस समारोह यह मुझे दे रहा है का उपयोग करते समय अपलोड की गई छवि के विस्तार की जरूरत है त्रुटि
Class 'Imagine\Gd\Imagine' not found
case self::DRIVER_IMAGICK:
if (class_exists('Imagick', false)) {
return new \Imagine\Imagick\Imagine();
}
break;
case self::DRIVER_GD2:
if (function_exists('gd_info')) {
return new \Imagine\Gd\Imagine();
}
break;
default:
throw new InvalidConfigException("Unknown driver: $driver");
}
}
throw new InvalidConfigException("Your system does not support any of these drivers: " . implode(',', (array) static::$driver));
यह त्रुटि से पुस्तकालय फ़ाइलें
vendor\yiisoft\yii2\imagine\BaseImage.php
आता है मैं कैसे इस समस्या को हल कर सकते हैं? क्या कोई मुझे सुझाव दे सकता है?
नाम स्थान भी जोड़ा जाता है
namespace yii\imagine;
use Yii;
use yii\imagine\Image\Box;
use yii\imagine\Image\Color;
use yii\imagine\Image\ImageInterface;
use yii\imagine\Image\ImagineInterface;
use yii\imagine\Image\ManipulatorInterface;
use yii\imagine\Image\Point;
use yii\base\InvalidConfigException;
use yii\base\InvalidParamException;
use yii\helpers\ArrayHelper;
यह लाइब्रेरी फ़ाइलों है, मैं इसे, मैं भी था संगीतकार अद्यतन, अभी भी यह मुझे एक ही त्रुटि दे रहा है कभी नहीं बदल
को
जोड़ने है कि पहले से ही adde डी – Nikul
आपके पास यह 'yii \ कल्पना का उपयोग है; 'जहां आप समारोह कहते हैं? – scaisEdge
धन्यवाद @scaisEdge अब काम कर रहा है – Nikul