Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image get streched on camera layer #42

Open
anvpn opened this issue Aug 11, 2018 · 8 comments
Open

Image get streched on camera layer #42

anvpn opened this issue Aug 11, 2018 · 8 comments

Comments

@anvpn
Copy link

anvpn commented Aug 11, 2018

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
Copy link
Author

anvpn commented Aug 11, 2018

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
Copy link
Owner

wysaid commented Aug 15, 2018

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

@anvpn
Copy link
Author

anvpn commented Aug 16, 2018

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
Copy link
Author

anvpn commented Aug 16, 2018

            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
Copy link
Author

anvpn commented Aug 17, 2018 via email

wysaid pushed a commit that referenced this issue Aug 17, 2018
wysaid pushed a commit to wysaid/ios-gpuimage-plus-pod that referenced this issue Aug 17, 2018
wysaid pushed a commit that referenced this issue Aug 17, 2018
wysaid pushed a commit that referenced this issue Aug 17, 2018
@wysaid
Copy link
Owner

wysaid commented Aug 17, 2018

you may try : @krblend mix date.png 120

@anvpn
Copy link
Author

anvpn commented Aug 17, 2018

I have tried this , but having same issue

@anvpn
Copy link
Author

anvpn commented Aug 17, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants