diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-07-31 20:37:06 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-07-31 20:37:06 -0400 |
| commit | 3fa2a001c7275737e4ff4011c23ca9dc359d721d (patch) | |
| tree | 0e6de4c3ff3eae1cc277a92fe0da79e214f50f2b /MediaBrowser.Server.Implementations/Drawing/ImageProcessor.cs | |
| parent | a37a11c486350a35cbc9f8763c477dd189e35501 (diff) | |
add error handling to dlna channel support
Diffstat (limited to 'MediaBrowser.Server.Implementations/Drawing/ImageProcessor.cs')
| -rw-r--r-- | MediaBrowser.Server.Implementations/Drawing/ImageProcessor.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MediaBrowser.Server.Implementations/Drawing/ImageProcessor.cs b/MediaBrowser.Server.Implementations/Drawing/ImageProcessor.cs index 09071cbf9..803b4389f 100644 --- a/MediaBrowser.Server.Implementations/Drawing/ImageProcessor.cs +++ b/MediaBrowser.Server.Implementations/Drawing/ImageProcessor.cs @@ -135,7 +135,7 @@ namespace MediaBrowser.Server.Implementations.Drawing var originalImagePath = options.Image.Path; - if (options.HasDefaultOptions() && options.Enhancers.Count == 0 && !options.CropWhiteSpace) + if (options.HasDefaultOptions(originalImagePath) && options.Enhancers.Count == 0 && !options.CropWhiteSpace) { // Just spit out the original file if all the options are default return originalImagePath; @@ -164,7 +164,7 @@ namespace MediaBrowser.Server.Implementations.Drawing // Determine the output size based on incoming parameters var newSize = DrawingUtils.Resize(originalImageSize, options.Width, options.Height, options.MaxWidth, options.MaxHeight); - if (options.HasDefaultOptionsWithoutSize() && newSize.Equals(originalImageSize) && options.Enhancers.Count == 0) + if (options.HasDefaultOptionsWithoutSize(originalImagePath) && newSize.Equals(originalImageSize) && options.Enhancers.Count == 0) { // Just spit out the original file if the new size equals the old return originalImagePath; |
