[Camera Plugin] Camera Pugin Resolution
Forge component by OutSystems R&D
Published on 16 Apr 2020

Hi Guys,

Is there a way that I can increase the resolution of the pictures that are taken with the Camera Plugin?

Average size is between 30 and 60 kb , but I need the pictures to be much more clear.

Thank you in advance!

Rank: #291

Hey, Stefan,

I had a look at the plugin and it looks like we have the settings hardcoded to 60% quality and JPEG format.

However, you can clone the plugin and change those settings to increase quality, namely on the 'TakePictureJS' node, on the 'Take Picture' action. Have a look at this section from our GitHub repository, for reference on what's possible to do.

Can you try changing the setting to 100 and tell us how it went?

Best regards,

Carlos Simões

Rank: #2604

Hi Carlos,

Thank you for pointing me into the right direction. In my situation the bottleneck was the targetHeight/ width. This is set to 600 in the same TakePictureJS-node. When I increase it to for example 2000 the size of the image increases also. 


Best regards,

Stefan Dirkx

Rank: #291

Great stuff! Glad to know I helped!

I'll also pass on the feedback about these more complex settings.

Best regards,

Carlos Simões

Rank: #4239

i had this requirement also, it would be nice to be able to control the resolution/ size of the image

Rank: #2604

Hi Linguo,

You can change the resolution by changing the targetHeight/ width in the TakePictureJS-node of the plugin. If you want to have a different resolution on different places in your apps, then you can add an inputparamter to the take picture action which you pass on to the TakePictureJS-node.

Good luck!

Rank: #4239

just found out that i am using the default upload widget... any idea how to change the default setting?

Rank: #490

Thanks Stephan! This parameters should be part of the original plugin.