Skip to content

Commit

Permalink
set webp quality to 80
Browse files Browse the repository at this point in the history
  • Loading branch information
hoseinzadehashraf committed Apr 12, 2024
1 parent d145a07 commit 75dd186
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Olive.Gpt/Api.cs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ internal static async Task<string> UploadToS3(string name, string url)
try
{
data = await url.AsUri().DownloadData();
data= SKImage.FromEncodedData(data).Encode(SKEncodedImageFormat.Webp, 100).ToArray();
data = SKImage.FromEncodedData(data).Encode(SKEncodedImageFormat.Webp, 80).ToArray();
}
catch (Exception e)
{
Expand Down
2 changes: 1 addition & 1 deletion Olive.Gpt/Olive.Gpt.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<Version>1.0.127</Version>
<Version>1.0.128</Version>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 75dd186

Please sign in to comment.