GPUImage icon indicating copy to clipboard operation
GPUImage copied to clipboard

Iphone 5: Camera Image Height

Open manjeettbz opened this issue 14 years ago • 3 comments

Hello Brad,

Can you please help me to find out the height setting, its not showing full screen on iphone 5. I guess i need to adjust height to 568 from 480. can you please suggest me on this?

Thanks, M

manjeettbz avatar Oct 30 '12 19:10 manjeettbz

I have no idea what you're asking. What height setting? You mean in the sample applications? Simply adjust that as you would for any iPhone 5 application.

BradLarson avatar Oct 30 '12 19:10 BradLarson

sorry i should have explained it better. Question is regarding the camera View Height even though filterview is full screen according to the screen bounds. but the Camera Output is not fullscreen., its showing black area at the bottom. i checked filter showcase app on iphone 5. there is big black area at the bottom. thanks

manjeettbz avatar Oct 30 '12 19:10 manjeettbz

By default, the GPUImageView uses a fillMode that preserves the aspect ratio of the incoming image. The iPhone's camera is in a 4:3 aspect ratio when set to use a 640x480 input image. This will produce black bars on the iPhone 5's taller screen. You can either use a different input resolution or adjust the filter view's fill mode to remove those.

BradLarson avatar Oct 30 '12 19:10 BradLarson