[Mobile] Image mark up tool

[Mobile] Image mark up tool

  

Hello,


I'm trying to make an application where you can select a picture from ur phone or take one yourself, after clicking a button you should be able to draw on the picture and save it. 

I've been trying the Sketch plugin: https://www.outsystems.com/forge/2489/ . It has success when I use png pictures, for some reason the component crashes on jpgs or when i take a picture myself. I've tried to debug the component but since my application crashes the debugger crashes aswell. 

Servicecenter shows the following messages under Errors and general:




If someone could help me to get this component working or knows an alternative it would be greatly appreciated!


Thanks in Advance


Nick Vandebriel wrote:

Hello,


I'm trying to make an application where you can select a picture from ur phone or take one yourself, after clicking a button you should be able to draw on the picture and save it. 

I've been trying the Sketch plugin: https://www.outsystems.com/forge/2489/ . It has success when I use png pictures, for some reason the component crashes on jpgs or when i take a picture myself. I've tried to debug the component but since my application crashes the debugger crashes aswell. 

Servicecenter shows the following messages under Errors and general:




If someone could help me to get this component working or knows an alternative it would be greatly appreciated!


Thanks in Advance



Hi Nick,


Opening the plugin, i saw this code:

navigator.sketch.getSketch(Success, Fail, {
    destinationType: navigator.sketch.DestinationType.DATA_URL,
    encodingType: navigator.sketch.EncodingType.JPEG,
    inputType : navigator.sketch.InputType.DATA_URL,
    inputData : "data:image/png;base64," + $parameters.ImageData
});


Try change this to dynamic input or just change to jpgs and see if it work..

Fábio Vaz wrote:

Nick Vandebriel wrote:

Hello,


I'm trying to make an application where you can select a picture from ur phone or take one yourself, after clicking a button you should be able to draw on the picture and save it. 

I've been trying the Sketch plugin: https://www.outsystems.com/forge/2489/ . It has success when I use png pictures, for some reason the component crashes on jpgs or when i take a picture myself. I've tried to debug the component but since my application crashes the debugger crashes aswell. 

Servicecenter shows the following messages under Errors and general:




If someone could help me to get this component working or knows an alternative it would be greatly appreciated!


Thanks in Advance



Hi Nick,


Opening the plugin, i saw this code:

navigator.sketch.getSketch(Success, Fail, {
    destinationType: navigator.sketch.DestinationType.DATA_URL,
    encodingType: navigator.sketch.EncodingType.JPEG,
    inputType : navigator.sketch.InputType.DATA_URL,
    inputData : "data:image/png;base64," + $parameters.ImageData
});


Try change this to dynamic input or just change to jpgs and see if it work..

Hello Fábio,

Thanks for your reply, I've already tried that, doesn't work sadly. I've also tried to convert the images with imagetoolbox to png. But for some reason my application times out during the convertion action (think it isn't good practice to use a server action for this anyway). I don't know if there are any mobile components to convert images?