Update the convenient API for UIImage (not SDAnimatedImage) to grab the current image format when no encode format provided
This match two classes behavior
This commit is contained in:
parent
4acf569171
commit
9078f316f7
|
@ -9,6 +9,7 @@
|
|||
#import "UIImage+MultiFormat.h"
|
||||
#import "SDImageCodersManager.h"
|
||||
#import "SDAnimatedImageRep.h"
|
||||
#import "UIImage+Metadata.h"
|
||||
|
||||
@implementation UIImage (MultiFormat)
|
||||
|
||||
|
@ -41,7 +42,7 @@
|
|||
}
|
||||
}
|
||||
#endif
|
||||
return [self sd_imageDataAsFormat:SDImageFormatUndefined];
|
||||
return [self sd_imageDataAsFormat:self.sd_imageFormat];
|
||||
}
|
||||
|
||||
- (nullable NSData *)sd_imageDataAsFormat:(SDImageFormat)imageFormat {
|
||||
|
|
Loading…
Reference in New Issue