The Free Software Media System - Server Backend & API
Check path before opening image
DrPandemic394d96246bf8
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.mdindex c3fcea1e21..29456598f1 100644--- a/CONTRIBUTORS.md+++ b/CONTRIBUTORS.md@@ -23,8 +23,9 @@- [fruhnow](https://github.com/fruhnow)- [Lynxy](https://github.com/Lynxy)- [fasheng](https://github.com/fasheng)- - [ploughpuff](https://github.com/ploughpuff)+ - [ploughpuff](https://github.com/ploughpuff)- [pjeanjean](https://github.com/pjeanjean)+ - [DrPandemic](https://github.com/drpandemic)# Emby Contributorsdiff --git a/Jellyfin.Drawing.Skia/SkiaEncoder.cs b/Jellyfin.Drawing.Skia/SkiaEncoder.csindex 5060476bad..1eda817a39 100644--- a/Jellyfin.Drawing.Skia/SkiaEncoder.cs+++ b/Jellyfin.Drawing.Skia/SkiaEncoder.cs@@ -185,6 +185,11 @@ namespace Jellyfin.Drawing.Skiapublic ImageDimensions GetImageSize(string path){+ if (!File.Exists(path))+ {+ throw new FileNotFoundException("File not found", path);+ }+using (var s = new SKFileStream(path))using (var codec = SKCodec.Create(s)){