Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't resize some images #34

Open
luckyalexandr opened this issue Nov 13, 2019 · 1 comment
Open

Don't resize some images #34

luckyalexandr opened this issue Nov 13, 2019 · 1 comment

Comments

@luckyalexandr
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants