Camera properties or edit photos

Hi guys,

 Is there any way to modify the camera properties (e.g.: add some effects such as fog,blurry image,sepia,black and white,etc) and/or can the user modify the picture,like adding the effects above or cutting the photo,draw on it,dirrectly post it to instagram,etc.

  And is there any way to let the user use the both cameras?

Any tutorials or how to use camera on corona would be highly apreciated.Thank you!

Bogdan

Hi Bogdan,

This is a lot of separate questions in one post, so I can only respond in a general way.

Yes, you can apply effects to an image taken with the camera. But you may have some issues doing it during the camera operation, unless you use the “camera to texture” feature which is available only for iOS, and then depending on how intensive the filter effect, you may have performance issues. For example, if you try to execute a composite “gaussian blur + bloom + sepia” filter on a live camera texture, the performance will not be acceptable.

You can effectively cut, crop, and draw on the photo, but these are completely separate topics which would require you research the methods on your own.

Posting to Instagram is not supported, but you can share the photo in other ways depending on which platform:

https://coronalabs.com/blog/2015/03/17/tutorial-utilizing-the-activity-popup-plugin-ios/

http://docs.coronalabs.com/plugin/CoronaProvider_native_popup_social/index.html

Take care,

Brent

Hello Brent,

  So you are telling me that there is no way to apply any effects such as "the blur " effect,while the camera is in action,on an android device?

Also can i use the front camera on an android device?

Can I resize my image after it is taken?Or can I create a function that automatically applies my desired effect after the photo is taken?

Can it take multiple photos and unite them into one?

Cheers,

Bogdan

Hi Bogdan,

Essentially yes on these points. To clarify:

  1. On Android, at this time, you can’t use the “camera feed as texture” in Corona. So, the app will use the device’s built-in camera functionality/app, for which Corona does not have any control for blur or other visual effects on the “live” camera view.

  2. Yes, after the photo is taken, Corona can detect that event and then you can write a function to apply the effect, and/or resize the photo.

  3. Each time you take a photo, it will (by default) become a display object on the screen. So, you could take multiple photos and then later unite them into one image/group on the screen.

Brent

Hi Bogdan,

This is a lot of separate questions in one post, so I can only respond in a general way.

Yes, you can apply effects to an image taken with the camera. But you may have some issues doing it during the camera operation, unless you use the “camera to texture” feature which is available only for iOS, and then depending on how intensive the filter effect, you may have performance issues. For example, if you try to execute a composite “gaussian blur + bloom + sepia” filter on a live camera texture, the performance will not be acceptable.

You can effectively cut, crop, and draw on the photo, but these are completely separate topics which would require you research the methods on your own.

Posting to Instagram is not supported, but you can share the photo in other ways depending on which platform:

https://coronalabs.com/blog/2015/03/17/tutorial-utilizing-the-activity-popup-plugin-ios/

http://docs.coronalabs.com/plugin/CoronaProvider_native_popup_social/index.html

Take care,

Brent

Hello Brent,

  So you are telling me that there is no way to apply any effects such as "the blur " effect,while the camera is in action,on an android device?

Also can i use the front camera on an android device?

Can I resize my image after it is taken?Or can I create a function that automatically applies my desired effect after the photo is taken?

Can it take multiple photos and unite them into one?

Cheers,

Bogdan

Hi Bogdan,

Essentially yes on these points. To clarify:

  1. On Android, at this time, you can’t use the “camera feed as texture” in Corona. So, the app will use the device’s built-in camera functionality/app, for which Corona does not have any control for blur or other visual effects on the “live” camera view.

  2. Yes, after the photo is taken, Corona can detect that event and then you can write a function to apply the effect, and/or resize the photo.

  3. Each time you take a photo, it will (by default) become a display object on the screen. So, you could take multiple photos and then later unite them into one image/group on the screen.

Brent