Skip to content

Commit

Permalink
#6161 Fixed a bug that occurred when decoding an image from a stream …
Browse files Browse the repository at this point in the history
…(FileRoxyFilemanService)
  • Loading branch information
DmitriyKulagin committed Apr 6, 2022
1 parent 819c421 commit 3d4fcda
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,8 @@ public virtual async Task GetFilesAsync(string directoryPath, string type)
if (GetFileType(_fileProvider.GetFileExtension(files[i])) == "image")
{
await using var stream = new FileStream(physicalPath, FileMode.Open);
var image = SKBitmap.DecodeBounds(stream);
var skData = SKData.Create(stream);
var image = SKBitmap.DecodeBounds(skData);
width = image.Width;
height = image.Height;
}
Expand Down

0 comments on commit 3d4fcda

Please sign in to comment.