Image from Camera not compresed

I’m taking a photo from the camera like this:

Camera.takePicture({ targetWidth: 200, targetHeight: 200}).then(function(file)
{
    debug_log(JSON.stringify(file));
});

But I get this:

{"path":"/storage/emulated/0/Android/data/Fuse.Preview/cache/images/IMG_20160620_162027.jpg","name":"IMG_20160620_162027.jpg","width":3264,"height":1836,"info":{}}

The image Width is 3264 not 200!

(Fuse version 0.20.3) - OSX

This seems to be due to a documentation bug; try Camera.takePicture(200, 200) instead.

Hey Cristian, the docs are fudged here, sorry about that. The correct way to use this is with:

Camera.takePicture(200, 200)

Edit: Damn, too slow :wink:

Andreas Rønning wrote:

Hey Cristian, the docs are fudged here, sorry about that. The correct way to use this is with:

Camera.takePicture(200, 200)

Edit: Damn, too slow :wink:

Thanks!!!