diff options
Diffstat (limited to 'Classes')
-rwxr-xr-x | Classes/HJMOHandler.m | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/Classes/HJMOHandler.m b/Classes/HJMOHandler.m index ab95766..0c24464 100755 --- a/Classes/HJMOHandler.m +++ b/Classes/HJMOHandler.m @@ -345,18 +345,13 @@ self.urlConn = nil; // manipulate file here - if ([users count] > 0) { - HJManagedImageV *user = [users objectAtIndex:0]; - if (self.squareCropped) { - NSLog(@"here"); - HJMOFileCache* fileCache = objManager.fileCache; - NSString* loadingFile = [[fileCache loadingFilePathForOid:oid] retain]; - UIImage *cropped = [[[UIImage imageWithContentsOfFile:loadingFile] imageByScalingAndCroppingForSize:CGSizeMake(100,100)] retain]; - //[[[UIImageView alloc] initWithImage:[moHandler.moData imageByScalingAndCroppingForSize:CGSizeMake(100,100)]] autorelease]; - [UIImagePNGRepresentation(cropped) writeToFile:loadingFile atomically:YES]; - NSLog(@"after"); - } - } + if (self.squareCropped) { + HJMOFileCache* fileCache = objManager.fileCache; + NSString* loadingFile = [[fileCache loadingFilePathForOid:oid] retain]; + UIImage *cropped = [[[UIImage imageWithContentsOfFile:loadingFile] imageByScalingAndCroppingForSize:CGSizeMake(100,100)] retain]; + //[[[UIImageView alloc] initWithImage:[moHandler.moData imageByScalingAndCroppingForSize:CGSizeMake(100,100)]] autorelease]; + [UIImagePNGRepresentation(cropped) writeToFile:loadingFile atomically:YES]; + } NSString* readyFilename = [self.objManager.fileCache loadingFinishedForOid:oid]; if (readyFilename==nil) { |