I'm having trouble with my Angular app and creating a gallery of photos from my Samsung Galaxy. I am using the "object-fit: cover" css attribute for a nice design, but it only seems to work correctly when the image has an EXIF "orientation" property equal to 1. For other values of the "orientation" property (like 5 or 6), it stretches my images. I also tried loading the images through the "background-image" property with "background-size: cover", but the same issue persists. Here is a snippet of my scss code:
div{
height: 150px;
width: 150 px;
img{
height: 100%;
width: 100%;
object-fit: cover;
}
}
Does anyone have any ideas on where I might be going wrong? Thanks in advance.