i want to remove the white space behind the logo because the background color is not covering it. i tried using paint to crop the logo but its not neat i tried putting background color behind image not working i want this output
my output:
CodePudding user response:
As noted in the comments, you can't add opacity to a JPG image. You'll need to convert this to a PNG.
CodePudding user response:
Since your logo has a simple circular shape, you could also use a css clip-path
body{
background:#ccc;
}
.logo-round{
width:20%;
height:auto;
clip-path: circle(42%);
}
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/c/c0/COMSATS_new_logo.jpg/600px-COMSATS_new_logo.jpg" />
clip-path: circle(42%);
The right percentage value depends on the whitespace/background surrounding the logo – in this case 42% should work pretty fine.