You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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',
]
]);
The text was updated successfully, but these errors were encountered:
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',
]
]);
The text was updated successfully, but these errors were encountered: