From 35af13fdc7420da01f474c0bc1927cc2dfab9a40 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 18 Jun 2013 15:43:14 -0400 Subject: reduce chapter db calls --- MediaBrowser.Controller/Drawing/ImageManager.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'MediaBrowser.Controller/Drawing/ImageManager.cs') diff --git a/MediaBrowser.Controller/Drawing/ImageManager.cs b/MediaBrowser.Controller/Drawing/ImageManager.cs index d6bc983c0..2ccc0dc65 100644 --- a/MediaBrowser.Controller/Drawing/ImageManager.cs +++ b/MediaBrowser.Controller/Drawing/ImageManager.cs @@ -96,6 +96,7 @@ namespace MediaBrowser.Controller.Drawing /// The entity that owns the image /// The image type /// The image index (currently only used with backdrops) + /// The original image path. /// if set to true [crop whitespace]. /// The last date modified of the original image file /// The stream to save the new image to @@ -107,7 +108,7 @@ namespace MediaBrowser.Controller.Drawing /// The enhancers. /// Task. /// entity - public async Task ProcessImage(BaseItem entity, ImageType imageType, int imageIndex, bool cropWhitespace, DateTime dateModified, Stream toStream, int? width, int? height, int? maxWidth, int? maxHeight, int? quality, List enhancers) + public async Task ProcessImage(BaseItem entity, ImageType imageType, int imageIndex, string originalImagePath, bool cropWhitespace, DateTime dateModified, Stream toStream, int? width, int? height, int? maxWidth, int? maxHeight, int? quality, List enhancers) { if (entity == null) { @@ -119,8 +120,6 @@ namespace MediaBrowser.Controller.Drawing throw new ArgumentNullException("toStream"); } - var originalImagePath = GetImagePath(entity, imageType, imageIndex); - if (cropWhitespace) { originalImagePath = await GetCroppedImage(originalImagePath, dateModified).ConfigureAwait(false); -- cgit v1.2.3