tags:

views:

21

answers:

0

SORRY for once again...

I am new to iphone programming. using google code iphone-exif, i can read/write images tags also i can add custom image tags. But, my problem is that how can see the updated data??? OR is there any way to save image with updated data??

I have used .jpg image from net, is in other resources folder. Here my code (.m file)


NSString *filePath = @"/.../ProjectName/1.jpg";

NSMutableData *imageData = [NSMutableData dataWithContentsOfFile:filePath];

EXFJpeg* jpegScanner = [[EXFJpeg alloc] init];

[jpegScanner scanImageData: imageData];

EXFMetaData* exifData = jpegScanner.exifMetaData;

//EXFJFIF* jfif = jpegScanner.jfif;

[exifData addTagValue: @"Changed MAke" forKey:[NSNumber numberWithInt:EXIF_Make]];

id val2 = [exifData tagValue:[NSNumber numberWithInt:EXIF_Make]];

NSLog(val2);

NSLog([exifData tagValue:[NSNumber numberWithInt:EXIF_Model]]);

NSLog([exifData tagValue:[NSNumber numberWithInt:EXIF_DateTime]]);

// SAVE THE IMAGE WITH THE NEW TAGS

[jpegScanner populateImageData:imageData];

//[imageData writeToFile:filePath atomically:YES];

[jpegScanner release];


But above answer not solves my question because on console, i get the updated values. my question are-

  1. what is the output of populateImageData()??? 2.populateImageData() giving me as - About to append remaining data) is that correct??
  2. is there any other way to see that updated data?? any tool for that means it gives me as in this format, before values-after values.
  3. Here what do u mean by "SAVE THE IMAGE WITH THE NEW TAGS"??means save project??

[so i can demonstrate to others that Using EXIF, we can read/write and also edit the tag values in this manner. Do changes here u will get output like this(not on console).]]