Do a test again by only override the `kCGImagePropertyOrientation` when the orientation is not UP
This may remove the strange warning log from CoreMedia system framework, see #3727
This commit is contained in:
parent
ce406a2b2d
commit
69cca49687
|
@ -847,7 +847,9 @@ static BOOL SDImageIOPNGPluginBuggyNeedWorkaround(void) {
|
||||||
#else
|
#else
|
||||||
CGImagePropertyOrientation exifOrientation = kCGImagePropertyOrientationUp;
|
CGImagePropertyOrientation exifOrientation = kCGImagePropertyOrientationUp;
|
||||||
#endif
|
#endif
|
||||||
properties[(__bridge NSString *)kCGImagePropertyOrientation] = @(exifOrientation);
|
if (exifOrientation != kCGImagePropertyOrientationUp) {
|
||||||
|
properties[(__bridge NSString *)kCGImagePropertyOrientation] = @(exifOrientation);
|
||||||
|
}
|
||||||
// Encoding Options
|
// Encoding Options
|
||||||
double compressionQuality = 1;
|
double compressionQuality = 1;
|
||||||
if (options[SDImageCoderEncodeCompressionQuality]) {
|
if (options[SDImageCoderEncodeCompressionQuality]) {
|
||||||
|
|
Loading…
Reference in New Issue