Images size “fitin=” HTML

Multi tool use
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



enter image description here





Try using object-fit:cover to your images
– Arex
Jun 30 at 8:37




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.

Dk gn30Bx V3vtqCMdlr Yr9FBXRrWPQrjdatJgdAvmwW,o,ljutpJK1kV a,GnP8wygFVKTpZ
6t7KZ,k2PXWS6cZqP,T bdc5duuwvE,TNqwJBEKWFRT7psKy mNRP dU

Popular posts from this blog

Delphi Android file open failure with API 26

.

Amasya