I hereby claim:
- I am michaelmj on github.
- I am michaelmj (https://keybase.io/michaelmj) on keybase.
- I have a public key whose fingerprint is F036 5E73 5240 F434 3460 878A DE24 0566 27DC F8F9
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
// See http://mindsea.com/2012/12/18/downscaling-huge-alassets-without-fear-of-sigkill for details | |
#import <AssetsLibrary/AssetsLibrary.h> | |
#import <ImageIO/ImageIO.h> | |
// Helper methods for thumbnailForAsset:maxPixelSize: | |
static size_t getAssetBytesCallback(void *info, void *buffer, off_t position, size_t count) { | |
ALAssetRepresentation *rep = (__bridge id)info; | |
NSError *error = nil; |