Question

I'm tired to capture an image from GPUImageStillCamera and I got an image which has dimension 2592 X 1936 and 5.1 MB in size(and the image taken in iPad mini). This is too large(for my app). How to reduce the image dimension while capturing an image?

Était-ce utile?

La solution

As I said in response to this GitHub issue you created, use -forceProcessingAtSize: on the first filter in your filter chain to lock it to a given size. If that size is larger than the default video size, you might want to do this right before you capture your photo, then set it back to 0 (using an unrestricted size) after the photo is captured.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top