wysaid / ios-gpuimage-plus

GPU accelerated image filters for iOS, based on OpenGL.
MIT License
250 stars 73 forks source link

Image get streched on camera layer #42

Open anvpn opened 6 years ago

anvpn commented 6 years ago

Hi there

Thank you for such a wonderful library , Its Amazing

I am a Sr IOS developer and working with your library , i am having one issue I want to display one view overlay on camera (which display date and time of capture) , i can share you the screenshot.

While i add image on camera overlay its scratched and display out of camera while save the video will seem perfect.

I also check the image and it seem perfect while capture but somehow its not apply on camera layer

Please see the image attached and let me know if there is any solution to get rid from it

Here i am attached before capture and after capture images

Thanks[ img_2808 img_2811 img_2812 img_2807

](url)

anvpn commented 6 years ago

I have added the image like this , here date.png is my image which display date if(showDate) { NSString *configDate = [NSString stringWithUTF8String:config]; configDate = [configDate stringByAppendingString:@" @blend mix date.png 100"]; config = [configDate UTF8String]; } [_myCameraViewHandler setFilterWithConfig:config];

}

I hope i am not doing any mistake , of let me know if there is any other way to add image on layer

Thanks in advance Help will really appreciated !!

wysaid commented 6 years ago

Can you produce your problem in the demo? Give me a fork and I can take a look for your problem

anvpn commented 6 years ago

Or can you check with adding small view on camera layer , in coading part take screenhot and add with filters

you will get actual problem as i mentioned. I need this help in urgent basis. Will you please try and let me know here

anvpn commented 6 years ago
            Please take any image and named as date.png and then try to add image , you will surely replicate the issue

            NSString *configDate = [NSString stringWithUTF8String:config];
            configDate =  [configDate stringByAppendingString:@" @blend mix date.png 120"];
            config = [configDate UTF8String];

        [_myCameraViewHandler setFilterWithConfig:config];
anvpn commented 6 years ago

I am waiting for your reply

On Wed, Aug 15, 2018 at 11:11 AM, Wang Yang notifications@github.com wrote:

Can you produce your problem in the demo? Give me a fork and I can take a look for your problem

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/wysaid/ios-gpuimage-plus/issues/42#issuecomment-413099448, or mute the thread https://github.com/notifications/unsubscribe-auth/Akq73MCYdMGDzICrdmMOfbNRSH5OBaUNks5uQ7R4gaJpZM4V5HNu .

wysaid commented 6 years ago

you may try : @krblend mix date.png 120

anvpn commented 6 years ago

I have tried this , but having same issue

anvpn commented 6 years ago

Did you fix this , can i try with new clone ?