@ -65,6 +65,11 @@ namespace ImageProcessor.Web.HttpModules
/// </summary>
/// </summary>
private static string remotePrefix ;
private static string remotePrefix ;
/// <summary>
/// Whether to preserve exif meta data.
/// </summary>
private static bool? preserveExifMetaData ;
/// <summary>
/// <summary>
/// A value indicating whether this instance of the given entity has been disposed.
/// A value indicating whether this instance of the given entity has been disposed.
/// </summary>
/// </summary>
@ -115,6 +120,11 @@ namespace ImageProcessor.Web.HttpModules
remotePrefix = ImageProcessorConfig . Instance . RemotePrefix ;
remotePrefix = ImageProcessorConfig . Instance . RemotePrefix ;
}
}
if ( preserveExifMetaData = = null )
{
preserveExifMetaData = ImageProcessorConfig . Instance . PreserveExifMetaData ;
}
#if NET45
#if NET45
EventHandlerTaskAsyncHelper wrapper = new EventHandlerTaskAsyncHelper ( this . PostAuthorizeRequest ) ;
EventHandlerTaskAsyncHelper wrapper = new EventHandlerTaskAsyncHelper ( this . PostAuthorizeRequest ) ;
context . AddOnPostAuthorizeRequestAsync ( wrapper . BeginEventHandler , wrapper . EndEventHandler ) ;
context . AddOnPostAuthorizeRequestAsync ( wrapper . BeginEventHandler , wrapper . EndEventHandler ) ;
@ -370,7 +380,7 @@ namespace ImageProcessor.Web.HttpModules
string cachedPath = cache . CachedPath ;
string cachedPath = cache . CachedPath ;
// Process the image.
// Process the image.
using ( ImageFactory imageFactory = new ImageFactory ( ) )
using ( ImageFactory imageFactory = new ImageFactory ( preserveExifMetaData ! = null & & preserveExifMetaData . Value ) )
{
{
if ( isRemote )
if ( isRemote )
{
{