Fix the silly bug that coders manager ignore all encoding options. Which cause many features during encoding does not works

This commit is contained in:
DreamPiggy 2019-01-28 13:17:46 +08:00
parent 2864fe3619
commit df28feb99c
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@
SD_UNLOCK(self.codersLock);
for (id<SDImageCoder> coder in coders.reverseObjectEnumerator) {
if ([coder canEncodeToFormat:format]) {
return [coder encodedDataWithImage:image format:format options:nil];
return [coder encodedDataWithImage:image format:format options:options];
}
}
return nil;