summaryrefslogtreecommitdiffstats
path: root/Classes/HJMOHandler.m
diff options
context:
space:
mode:
Diffstat (limited to 'Classes/HJMOHandler.m')
-rwxr-xr-xClasses/HJMOHandler.m19
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) {