Welcome, Guest
Username Password: Remember me

SCImagePickerCell and allowsEditing
(1 viewing) (1) Guest
  • Page:
  • 1
  • 2

TOPIC: SCImagePickerCell and allowsEditing

SCImagePickerCell and allowsEditing 1 year, 3 months ago #1

The code uses UIImagePickerControllerOriginalImage but if the picker was configured with allowsEditing=YES, it should use UIImagePickerControllerEditedImage.

Thanks,
Brian
  • fictorial
  • OFFLINE
  • Fresh Boarder
  • Posts: 15
  • Karma: 3

Re: SCImagePickerCell and allowsEditing 1 year, 3 months ago #2

Thank you very much Brian for pointing out this glitch, we really appreciate it! We will fix this in our next release (due before the end of this month).

Thanks again!
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2402
  • Karma: 72

Re: SCImagePickerCell and allowsEditing 1 year, 3 months ago #3

One other suggestion... Perhaps add a delegate method to ask for JPEG vs PNG representation in saving and quality; then default to 80% JPEG as is now if the delegate doesn't implement that method.
  • fictorial
  • OFFLINE
  • Fresh Boarder
  • Posts: 15
  • Karma: 3

Re: SCImagePickerCell and allowsEditing 1 year, 3 months ago #4

Great suggestion Brian!

How about adding a new delegate method that will let you completely handle saving the image to disk. A sample implementation of this method might look something like this:

 
- (BOOL)tableViewModel:(SCTableViewModel *)tableViewModel
saveImage:(UIImage *)image toPath:(NSString *)imagePath
forRowAtIndexPath:(NSIndexPath *)indexPath
{
// save image as PNG
return [UIImagePNGRepresentation(image) writeToFile:imagePath atomically:YES];
}
 


We will also most probably add another delegate method that will let you handle loading the image too (might be helpful if you need decide to save the image to a location that's different from "imagePath".

Please tell me what you think.
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2402
  • Karma: 72
Last Edit: 1 year, 3 months ago by tarekskr.

Re: SCImagePickerCell and allowsEditing 1 year, 3 months ago #5

Seems reasonable to me. Thanks.
  • fictorial
  • OFFLINE
  • Fresh Boarder
  • Posts: 15
  • Karma: 3

Re: SCImagePickerCell and allowsEditing 1 year ago #6

Hi Tarek,

Did the saveImage delegate end up being implemented in the latest version ?? I cant seem to find it.

Also will you be allowing videos as well at some stage for the SCImagePicker ?? I need video functionality and at the moment am considering just making the changes in SCTableViewCell.m

Thanks.
  • monsta
  • OFFLINE
  • Expert Boarder
  • Posts: 130
  • Karma: 2
  • Page:
  • 1
  • 2
Time to create page: 2.49 seconds