Home Community Blog Buy Now

Misty Community Forum

Misty doesn't save taken images

Hi, Misty community.
A while ago, I was using the command misty.TakePicture and it was working very well; when I checked in API Explorer section, and used GetImageList, the image was there, but now, it is not working, the image is not there.
Would anyone be able to help me?

I wrote the code line like this:
misty.TakePicture(“test5”, 375, 812, true, true);

Those resolutions aren’t valid anymore. Pick a valid resolution. I’m pretty sure the command returns a failure in a case like that.

1 Like

Hey thanks for reaching out!

The TakePicture command only takes certain widthxheight resolutions, and it looks like you’re trying to take a 375x812 resolution photo which is not one of the supported resolutions. Currently the only valid resolutions for taking pictures are: 4160 x 3120, 3840 x 2160, 3264 x 2448, 3200 x 2400, 2592 x 1944, 2048 x 1536, 1920 x 1080, 1600 x 1200, 1440 x 1080, 1280 x 960, 1024 x 768, 800 x 600, 640 x 480, and 320 x 240

So if you wanted an 800x600 photo, display the photo on the screen, and overwrite the current file with the name “test5” you would use the following command:

misty.TakePicture("test5", 800, 600, true, true);

If you want an easy way to check the valid options for parameters with the JavaScript SDK you can check the API Reference here: Take Picture Reference

1 Like

@Vlad, @PatrickB thanks for answering! Now, it works; the problem was on the resolution.

The command didn’t return any failure; it seemed normally, like I run it a few months ago.
But yes, the problem was the resolution.