yii-dream-team / yii2-upload-behavior

Yii2 file/image upload behavior for ActiveRecord
http://yiidreamteam.com/yii2/upload-behavior
MIT License
77 stars 45 forks source link

Don't resize some images #34

Open luckyalexandr opened 4 years ago

luckyalexandr commented 4 years ago

Have 'class' => ImageUploadBehavior::className(), 'attribute' => 'image', 'createThumbsOnRequest' => true, 'filePath' => '@webroot/origin/mainSlideShow/[[id]].[[extension]]', 'fileUrl' => '@web/origin/mainSlideShow/[[id]].[[extension]]', 'thumbPath' => '@webroot/cache/mainSlideShow/[[profile]]_[[id]].[[extension]]', 'thumbUrl' => '@web/cache/mainSlideShow/[[profile]]_[[id]].[[extension]]', 'thumbs' => [ 'small' => ['width' => 100, 'height' => 70], 'main' => ['width' => 1983, 'height' => 1125], ], But thumbs for main dont work for some images and cached image larger then original. All extensions .jpg but some image resized some - not

sarvar-akbarov commented 3 years ago

same problem. It happens when original image size smaller than thumb's size. Have you solved?