문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top