0

Is it possible to lower the resolution of already taken videos/pictures? I need to export low resolution videos/pictures.

Advaith
  • 1,087
  • 3
  • 12
  • 31

1 Answers1

0

U can use "scale" for it, i.e.: 0.5 for half-size

UIImage *ret = nil;
ALAsset *asset =[_assetImages objectAtIndex:page];
ALAssetRepresentation *defaultRep = [asset defaultRepresentation];
ret = [UIImage imageWithCGImage:[defaultRep fullScreenImage] scale:0.5 orientation:0];

You should also look at Joshua Sullivan's answere on: How to compress/resize image on iPhone OS SDK before uploading to a server?

This changes the reported size of the scaled image, but does not actually change the image data. The data length of the NSData generated on the original and the scaled image is virtually identical.

Community
  • 1
  • 1
nirvana002
  • 75
  • 1
  • 7