Images size “fitin=” HTML

Multi tool use
Images size “fitin=” HTML
I upload images to my shop's site at Rakuten. Rakuten was dedicated the images size to 128px
and my shop is using 255px
for every single image. The images that I upload are named as follow "xxx.jpg?fitin=128:128"
.
128px
255px
"xxx.jpg?fitin=128:128"
I've changed it to 255px
and it works but the problem is that the images seem blurred. Can anybody help me fix this?
255px
1 Answer
1
Use object-fit: cover;
It will cut off the sides of the image, preserving the aspect ratio, and also filling in the space.
img {
object-fit: cover;
}
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
Try using object-fit:cover to your images
– Arex
Jun 30 at 8:37