Browse Source

Merge branch 'master' into js/dither-all-the-things

af/merge-core
James Jackson-South 8 years ago
committed by GitHub
parent
commit
9c6b8e83a0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 20
      src/ImageSharp/Processing/Processors/Transforms/ResizeProcessor.cs

20
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);
}
}
}
}
Loading…
Cancel
Save