ios - Compressing UIImage as Far as Possible? -
i trying compress down selected uiimage far reasonably possible. compressing so:
uiimage *image = [info objectforkey:uiimagepickercontrolleroriginalimage]; nsdata *imagedata = [[nsdata alloc] initwithdata:uiimagejpegrepresentation((image), 0.1)];
according length of data, come in anywhere between 250kb , 600kb depending on photo selected. maximising on storage essential me.
how suggest might compress photos down little further? method know of.
thanks.
there web page nice chart regarding quality , file size.
jpeg compression data loosing algorythm. if doesn't matter quality change color palette 256 or 8 color ( grayscale) , after use maxed compression.
Comments
Post a Comment