ios-gpuimage-plus icon indicating copy to clipboard operation
ios-gpuimage-plus copied to clipboard

Image get streched on camera layer

Open anvpn opened this issue 6 years ago • 8 comments

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 avatar Aug 11 '18 10:08 anvpn

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 !!

anvpn avatar Aug 11 '18 10:08 anvpn

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

wysaid avatar Aug 15 '18 05:08 wysaid

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 avatar Aug 16 '18 04:08 anvpn

            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 avatar Aug 16 '18 04:08 anvpn

I am waiting for your reply

On Wed, Aug 15, 2018 at 11:11 AM, Wang Yang [email protected] 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 .

anvpn avatar Aug 17 '18 07:08 anvpn

you may try : @krblend mix date.png 120

wysaid avatar Aug 17 '18 08:08 wysaid

I have tried this , but having same issue

anvpn avatar Aug 17 '18 08:08 anvpn

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

anvpn avatar Aug 17 '18 08:08 anvpn