Skip to content

Commit 7a94930

Browse files
Merge pull request #36 from Yuki-Codes/main
Fix Rounded corners appearing black
2 parents 188d5dc + 8180e2e commit 7a94930

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ImageSharp/AvatarWithRoundedCorner/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ static class Program
1414
static void Main(string[] args)
1515
{
1616
System.IO.Directory.CreateDirectory("output");
17-
using var img = Image.Load("fb.jpg");
17+
using var img = Image.Load<Rgba32>("fb.jpg");
1818

1919
// As Clone returns a new image make sure we dispose of it
2020
using (Image destRound = img.Clone(x => x.ConvertToAvatar(new Size(200, 200), 20)))

0 commit comments

Comments
 (0)