blob: 1e6fda2cf786d3c213228f43644022b8975f21c5 [file] [log] [blame]
// Copyright 2019 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import <Foundation/Foundation.h>
#import <Photos/Photos.h>
#import "FLTImagePickerImageUtil.h"
NS_ASSUME_NONNULL_BEGIN
@interface FLTImagePickerPhotoAssetUtil : NSObject
+ (nullable PHAsset *)getAssetFromImagePickerInfo:(NSDictionary *)info;
// Save image with correct meta data and extention copied from the original asset.
// maxWidth and maxHeight are used only for GIF images.
+ (NSString *)saveImageWithOriginalImageData:(NSData *)originalImageData
image:(UIImage *)image
maxWidth:(nullable NSNumber *)maxWidth
maxHeight:(nullable NSNumber *)maxHeight
imageQuality:(nullable NSNumber *)imageQuality;
// Save image with correct meta data and extention copied from image picker result info.
+ (NSString *)saveImageWithPickerInfo:(nullable NSDictionary *)info
image:(UIImage *)image
imageQuality:(nullable NSNumber *)imageQuality;
@end
NS_ASSUME_NONNULL_END