aboutsummaryrefslogtreecommitdiff
path: root/Emby.Drawing/ImageProcessor.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Emby.Drawing/ImageProcessor.cs')
-rw-r--r--Emby.Drawing/ImageProcessor.cs26
1 files changed, 14 insertions, 12 deletions
diff --git a/Emby.Drawing/ImageProcessor.cs b/Emby.Drawing/ImageProcessor.cs
index 2ba4f5aab..1e4537bae 100644
--- a/Emby.Drawing/ImageProcessor.cs
+++ b/Emby.Drawing/ImageProcessor.cs
@@ -410,18 +410,20 @@ namespace Emby.Drawing
{
ImageSize size;
- try
- {
- size = ImageHeader.GetDimensions(path, _logger, _fileSystem);
- }
- catch
- {
- _logger.Info("Failed to read image header for {0}. Doing it the slow way.", path);
-
- CheckDisposed();
-
- size = _imageEncoder.GetImageSize(path);
- }
+ size = ImageHeader.GetDimensions(path, _logger, _fileSystem);
+ //try
+ //{
+ // size = ImageHeader.GetDimensions(path, _logger, _fileSystem);
+ //}
+ //catch
+ //{
+ // return;
+ // //_logger.Info("Failed to read image header for {0}. Doing it the slow way.", path);
+
+ // //CheckDisposed();
+
+ // //size = _imageEncoder.GetImageSize(path);
+ //}
StartSaveImageSizeTimer();