refactor: change ConvertBase64UriToImage from extension method to static method
This commit is contained in:
parent
6abf505c40
commit
d87856bf2c
4 changed files with 14 additions and 5 deletions
|
@ -10,7 +10,7 @@ using SixLabors.ImageSharp.Processing.Processors.Transforms;
|
|||
|
||||
namespace Foxnouns.Backend.Extensions;
|
||||
|
||||
public static class AvatarObjectExtensions
|
||||
public static class ImageObjectExtensions
|
||||
{
|
||||
private static readonly string[] ValidContentTypes = ["image/png", "image/webp", "image/jpeg"];
|
||||
|
||||
|
@ -39,7 +39,7 @@ public static class AvatarObjectExtensions
|
|||
) => await objectStorageService.RemoveObjectAsync(CreateFlagInvocable.Path(hash), ct);
|
||||
|
||||
public static async Task<(string Hash, Stream Image)> ConvertBase64UriToImage(
|
||||
this string uri,
|
||||
string uri,
|
||||
int size,
|
||||
bool crop
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue