Browse Source
Merge branch 'master' into js/dither-all-the-things
af/merge-core
James Jackson-South
8 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
0 additions and
20 deletions
-
src/ImageSharp/Processing/Processors/Transforms/ResizeProcessor.cs
|
|
|
@ -191,25 +191,5 @@ namespace SixLabors.ImageSharp.Processing.Processors |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/// <inheritdoc/>
|
|
|
|
protected override void AfterImageApply(Image<TPixel> source, Image<TPixel> destination, Rectangle sourceRectangle) |
|
|
|
{ |
|
|
|
ExifProfile profile = destination.MetaData.ExifProfile; |
|
|
|
if (profile == null) |
|
|
|
{ |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
if (profile.GetValue(ExifTag.PixelXDimension) != null) |
|
|
|
{ |
|
|
|
profile.SetValue(ExifTag.PixelXDimension, destination.Width); |
|
|
|
} |
|
|
|
|
|
|
|
if (profile.GetValue(ExifTag.PixelYDimension) != null) |
|
|
|
{ |
|
|
|
profile.SetValue(ExifTag.PixelYDimension, destination.Height); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |