RaananW / PhoneGap-Image-Resizer

Providing an image resizer plugin for phonegap projects on both Android and iOS
93 stars 89 forks source link

ios saveImage(storeImage) directory issue #20

Closed lovelyelfpop closed 9 years ago

lovelyelfpop commented 9 years ago

when the option "directory" is a file URL(start with "file://") on ios, the storeImage(saveImage) function failed.

add this line after "NSString *directory = [options objectForKey:@"directory"];" inside the "saveImage" function:

"directory = [self getUrl:directory];"

RaananW commented 9 years ago

Hi, thanks. Looks like you find a fix already! :-) If you tested it and it works - care to send a PR?

RaananW commented 9 years ago

PR merged, https://github.com/RaananW/PhoneGap-Image-Resizer/pull/21