PhoneGap-Image-Resizer icon indicating copy to clipboard operation
PhoneGap-Image-Resizer copied to clipboard

resized image get a .jpg extension on iOS ( params.filename has no extension) but not on android

Open lovelyelfpop opened this issue 10 years ago • 2 comments

com.raananw.imageResizer\src\ios\ImageResize.m

NSRange r = [filename rangeOfString:format options:NSCaseInsensitiveSearch]; //removed if (r.location == NSNotFound) { [fullFileName appendString:@"."]; [fullFileName appendString:format]; }

I think the code above should be removed

lovelyelfpop avatar Dec 02 '15 02:12 lovelyelfpop

Hi,

I am not sure which one of the two is a bug. From the title I thought the bug was on Android, but from the description I understand the bug is in iOS. The problem is that the extension IS being added, or not being added? Because I actually think that it is better to add the extension. But if you have a different point of view, please share it.

RaananW avatar Dec 02 '15 09:12 RaananW

@RaananW I think it's better not to add the extension. The output file name should be determined by the param "params.filename".

lovelyelfpop avatar Dec 14 '15 05:12 lovelyelfpop