How do I resolve the image rotation and image cutting issue in Laravel?

耗尽温柔 提交于 2019-12-25 01:12:11

问题


I have an already developed a Laravel web app. I've just discovered that whenever I upload an image taken from a mobile phone it rotates and if the image px is bigger than the containers then the image is cut partially as I have kept overflow as hidden. I have heard of the image intervention package but i don't know how to apply it to my app, if there is any other way to resolve then issue without any additional package then that would be of great help.

profile-avatar{
    width: 420px;
    height:700px;
    overflow: hidden;
    display: inline-block;
    background-size: cover;
    background-repeat: no-repeat;
    background-position:top-center;
}

the above given is my css code if anyone wants to help and want any other code of mine then please tell

来源:https://stackoverflow.com/questions/59340961/how-do-i-resolve-the-image-rotation-and-image-cutting-issue-in-laravel

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!