Skip to content

Instantly share code, notes, and snippets.

@zhuowei
Created September 14, 2021 01:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zhuowei/cdfa0dbf0028b1f281b79f4606f6c1c1 to your computer and use it in GitHub Desktop.
Save zhuowei/cdfa0dbf0028b1f281b79f4606f6c1c1 to your computer and use it in GitHub Desktop.
@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