When I upload the different pixels .its not displaying the exact circular shape.it become oval shape.but when i upload square shaped picture its exact circular shape
<div class="profile_pic">
<?php
$model = SimUser::find()->where(['user_id' => Yii::$app->user->identity->user_id])->one();
if ($model->user_profile_image != null) { ?>
<img src="<?= Files::getFilePath($model->user_profile_image, true); ?>" class ="img-circle profile_img img-responsie " />
<?php } else { ?>
<?= Html::img(\Yii::$app->request->BaseUrl . '/web/images/user.png', ['class' => 'img-circle profile_img', 'alt' => '...']); ?>
<?php } ?>
</div>
how can i make the image to circular shape if it different pixels also