我已经使用了yii2-file-kit。现在我想通过滑行来调整我的缩略图,但我在日志中遇到错误
"NetworkError: 500 Internal Server Error - http://storage.local/cache/1/iApQj79NQCji2TWsLZppiCQ8lbdgAPBz.jpg?w=100"
这是我的配置
'components' => [
'cache' => [
'class' => 'yii\caching\DummyCache',
],
'fileStorage' => [
'class' => '\trntv\filekit\Storage',
'baseUrl' => '@storageUrl/source',
'filesystem' => [
'class' => 'common\components\filesystem\LocalFlysystemBuilder',
'path' => '@storage/web/source'
],
'as log' => [
'class' => 'common\behaviors\FileStorageLogBehavior',
'component' => 'fileStorage'
]
],
'glide' => [
'class' => 'trntv\glide\components\Glide',
'sourcePath' => '@storage/web/source',
'cachePath' => '@storage/cache',
'urlManager' => 'urlManagerStorage',
'maxImageSize' => 4000000,
'signKey' => 'pe4AJmRcBFbXfZvsk93VN'
],
在我看来
<?= Html::img(
Yii::$app->glide->createSignedUrl([
'glide/index',
'path' => $model->productAttachments[0]->path,
'w' => 100
], true),
['class' => 'article-thumb img-rounded pull-left']
) ?>
我只看一下Starter-Kit配置,我看到的配置相同。 storage config与yii2-starter-kit
相同答案 0 :(得分:0)
您可以显示调试以获取更多信息。或者你可以输出图像 地址::碱(真) '/滑行路径=?' $路径 '&安培; W ='。$ W '和; H ='。$小时。 '&安培;配合=作物';