My Objective is to make an image round and display it. If the image is square then i am able to convert it in to round by simply using border-radius:50%
property of CSS. But when the image is rectangular then using this CSS property is giving me oval shaped image.
One solution i thought of is first converting a rectangular image into square by using clip:rect(10px,0px,10px,0px)
property. By using this it is clipping image into square but not removing the clipped space. i.e. it is making that part invisible but image is still rectangular.
Clipped part is invisible but still there. So even now i am trying to use border-radius:50%
property it is giving me oval image with right and left side clipped.
Is there any way that i can solve this?