From 2e629f6c4637c93575e31877dfef3a76e3fc742e Mon Sep 17 00:00:00 2001 From: DreamPiggy Date: Fri, 10 Jan 2020 19:46:37 +0800 Subject: [PATCH] Fix the issue that preserveAspectRatio default value, now it's YES --- SDWebImage/Core/SDImageIOAnimatedCoder.m | 6 +++--- SDWebImage/Core/SDImageIOCoder.m | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/SDWebImage/Core/SDImageIOAnimatedCoder.m b/SDWebImage/Core/SDImageIOAnimatedCoder.m index 2f771455..5ba86f9c 100644 --- a/SDWebImage/Core/SDImageIOAnimatedCoder.m +++ b/SDWebImage/Core/SDImageIOAnimatedCoder.m @@ -228,7 +228,7 @@ #endif } - BOOL preserveAspectRatio = NO; + BOOL preserveAspectRatio = YES; NSNumber *preserveAspectRatioValue = options[SDImageCoderDecodePreserveAspectRatio]; if (preserveAspectRatioValue != nil) { preserveAspectRatio = preserveAspectRatioValue.boolValue; @@ -310,7 +310,7 @@ #endif } _thumbnailSize = thumbnailSize; - BOOL preserveAspectRatio = NO; + BOOL preserveAspectRatio = YES; NSNumber *preserveAspectRatioValue = options[SDImageCoderDecodePreserveAspectRatio]; if (preserveAspectRatioValue != nil) { preserveAspectRatio = preserveAspectRatioValue.boolValue; @@ -464,7 +464,7 @@ #endif } _thumbnailSize = thumbnailSize; - BOOL preserveAspectRatio = NO; + BOOL preserveAspectRatio = YES; NSNumber *preserveAspectRatioValue = options[SDImageCoderDecodePreserveAspectRatio]; if (preserveAspectRatioValue != nil) { preserveAspectRatio = preserveAspectRatioValue.boolValue; diff --git a/SDWebImage/Core/SDImageIOCoder.m b/SDWebImage/Core/SDImageIOCoder.m index f5223887..f617f437 100644 --- a/SDWebImage/Core/SDImageIOCoder.m +++ b/SDWebImage/Core/SDImageIOCoder.m @@ -87,7 +87,7 @@ #endif } - BOOL preserveAspectRatio = NO; + BOOL preserveAspectRatio = YES; NSNumber *preserveAspectRatioValue = options[SDImageCoderDecodePreserveAspectRatio]; if (preserveAspectRatioValue != nil) { preserveAspectRatio = preserveAspectRatioValue.boolValue; @@ -134,7 +134,7 @@ #endif } _thumbnailSize = thumbnailSize; - BOOL preserveAspectRatio = NO; + BOOL preserveAspectRatio = YES; NSNumber *preserveAspectRatioValue = options[SDImageCoderDecodePreserveAspectRatio]; if (preserveAspectRatioValue != nil) { preserveAspectRatio = preserveAspectRatioValue.boolValue;