davelf
03-12-2015, 03:21 AM
Hi everyone,
I need a script to round the image to circle shape, i try CSS3:
.round img{width: 118px; height: 118px; -webkit-border-radius: 59px; -moz-border-radius: 59px; border-radius: 59px;}
The problem, if the image is not perfectly rectangular the image layout after css is not proportional.
So may be javascript can help to crop and adjust the image proportion.
Is there any advice for my problem here?
I need a script to round the image to circle shape, i try CSS3:
.round img{width: 118px; height: 118px; -webkit-border-radius: 59px; -moz-border-radius: 59px; border-radius: 59px;}
The problem, if the image is not perfectly rectangular the image layout after css is not proportional.
So may be javascript can help to crop and adjust the image proportion.
Is there any advice for my problem here?