//
//  CTImageCompression.h
//  Open
//
//  Created by 雷俊博 on 2019/11/19.
//  Copyright © 2019 黄江涛 . All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface CTImageCompression : NSObject

/**  压缩图片*/
+ (UIImage *)imageWithOriginalImage:(UIImage *)image;
/**  压缩图片 压缩质量 0 -- 1*/
+ (UIImage *)imageWithOriginalImage:(UIImage *)image quality:(CGFloat)quality;
/**  压缩图片成Data*/
+ (NSData *)dataWithOriginalImage:(UIImage *)image;
/**  压缩图片成Base64字符串*/
+ (NSString *)encodedImageToBase64StrWithImage:(UIImage *)image;
/**  Base64字符串成图片*/
+ (UIImage *)decodedBase64StrToImageWith:(NSString *)encodedImageStr;
@end

NS_ASSUME_NONNULL_END
