diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-01-05 16:53:22 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-01-05 16:53:22 -0500 |
| commit | 6ed380ed1be293ef636570cf2f16c9c95f0858eb (patch) | |
| tree | 18123e2936d2d18708fc226b8d46a8a202532b39 /MediaBrowser.Server.Implementations/Drawing/ImageProcessor.cs | |
| parent | a01ee815fbd4a876ff7edf8f71162b37548e8080 (diff) | |
only call set resolution if we have positive x and y values
Diffstat (limited to 'MediaBrowser.Server.Implementations/Drawing/ImageProcessor.cs')
| -rw-r--r-- | MediaBrowser.Server.Implementations/Drawing/ImageProcessor.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MediaBrowser.Server.Implementations/Drawing/ImageProcessor.cs b/MediaBrowser.Server.Implementations/Drawing/ImageProcessor.cs index d75f2647c..6378cef52 100644 --- a/MediaBrowser.Server.Implementations/Drawing/ImageProcessor.cs +++ b/MediaBrowser.Server.Implementations/Drawing/ImageProcessor.cs @@ -229,7 +229,7 @@ namespace MediaBrowser.Server.Implementations.Drawing using (var thumbnail = new Bitmap(newWidth, newHeight, PixelFormat.Format32bppPArgb)) { // Mono throw an exeception if assign 0 to SetResolution - if (originalImage.HorizontalResolution >= 0 && originalImage.VerticalResolution >= 0) + if (originalImage.HorizontalResolution > 0 && originalImage.VerticalResolution > 0) { // Preserve the original resolution thumbnail.SetResolution(originalImage.HorizontalResolution, originalImage.VerticalResolution); |
