I want to output an image to the channel using the Imagesharp framework, or rather I'm new to This framework. Initially, I got this error "Can't convert from" SixLabors.ImageSharp.Image "to"string". I tried to solve the problem by writing string a = $ " {zx}"; await ReplyAsync(a) and it didn't work.
int Width = 640;
int Height = 480;
[Command("cmd")]
public async Task TestCmd()
{
var zx = Image.Load("Images/1ub.jpg");
{
zx.Mutate(x => x.Resize(zx.Width / 2, zx.Height / 2));
zx.Save("Images/1ub.jpg");
}
string a = $"{zx}";
await ReplyAsync(a);
}