mirror of
https://github.com/status-im/react-native-image-crop-picker.git
synced 2025-02-23 10:58:16 +00:00
38 lines
805 B
C
38 lines
805 B
C
|
//
|
||
|
// Compression.h
|
||
|
// imageCropPicker
|
||
|
//
|
||
|
// Created by Ivan Pusic on 12/24/16.
|
||
|
// Copyright © 2016 Ivan Pusic. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#import <Foundation/Foundation.h>
|
||
|
#import <UIKit/UIKit.h>
|
||
|
#import <AVFoundation/AVFoundation.h>
|
||
|
|
||
|
@interface ImageResult : NSObject
|
||
|
|
||
|
@property NSData *data;
|
||
|
@property NSNumber *width;
|
||
|
@property NSNumber *height;
|
||
|
@property NSString *mime;
|
||
|
@property UIImage *image;
|
||
|
|
||
|
@end
|
||
|
|
||
|
@interface VideoResult : NSObject
|
||
|
|
||
|
@end
|
||
|
|
||
|
@interface Compression : NSObject
|
||
|
|
||
|
- (ImageResult*) compressImage:(UIImage*)image withOptions:(NSDictionary*)options;
|
||
|
- (void)compressVideo:(NSURL*)inputURL
|
||
|
outputURL:(NSURL*)outputURL
|
||
|
withOptions:(NSDictionary*)options
|
||
|
handler:(void (^)(AVAssetExportSession*))handler;
|
||
|
|
||
|
@property NSDictionary *exportPresets;
|
||
|
|
||
|
@end
|