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

croping data issue #23

Open
martinkokkadan opened this issue Jan 11, 2025 · 2 comments
Open

croping data issue #23

martinkokkadan opened this issue Jan 11, 2025 · 2 comments

Comments

@martinkokkadan
Copy link

if width and height >1000 not getting base64 data to model

echo $form->field($model, '_banner_image')->widget(\bilginnet\cropper\Cropper::className(), [
'cropperOptions' => [
'width' => 2000, // must be specified
'height' => 1000, // must be specified
'preview' => [
'url' => (!empty($model->banner_image)) ? Url::base(true) . "/uploads/event-banner/" . $model->banner_image : '',
'width' => '340px', // must be specified // you can set as string '100%'
'height' => '200px', // must be specified // you can set as string '100px'
],
'buttonCssClass' => 'btn btn-default',
]
]);

@bilginnet
Copy link
Owner

you got any errors ?

@martinkokkadan
Copy link
Author

After loading 2-3 miniutes it closes

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