Created
September 14, 2021 01:21
-
-
Save zhuowei/cdfa0dbf0028b1f281b79f4606f6c1c1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import Darwin; | |
@import Foundation; | |
@interface IMGIFUtils | |
+ (bool)copyGifFromPath:(NSString*)arg1 toDestinationPath:(NSString*)arg2 error:(NSError**)arg3; | |
@end | |
int main() { | |
dlopen( | |
"/System/Library/PrivateFrameworks/IMSharedUtilities.framework/Versions/A/IMSharedUtilities", | |
RTLD_LAZY | RTLD_LOCAL); | |
NSError* error; | |
if (![NSClassFromString(@"IMGIFUtils") copyGifFromPath:@"empty.psd" | |
toDestinationPath:@"outfile" | |
error:&error]) { | |
NSLog(@"%@", error); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment