[Cropper Mobile] JSON Parse error: Expected '}'

[Cropper Mobile] JSON Parse error: Expected '}'

  
Forge Component
(3)
Published on 11 Oct (12 days ago) by Labs
3 votes
Published on 11 Oct (12 days ago) by Labs

That way it does not work.

"{""aspectRatio"": 1, ""viewMode"":3,""scalable"":false,""rotate"":90}"



This way the rotation works, but the component does not work to cut

"{""aspectRatio"": 1, ""viewMode"":3,""scalable"":false,""rotate"":90deg}"

Message Error: JSON Parse error: Expected '}'

Hello Eduardo,

That's probably you have to put 90deg between quotes? The second JSON is not a valid one...

I did it when I did it.

Hi Eduardo,

Can you clarify what you meant in your last comment?

From looking at the documentation, the rotate option requires a number so using 90deg should fail.

When you tried it with 90, did you try as well setting the rotatable option to true?

Cheers

Daniel Luz wrote:

Hi Eduardo,

Can you clarify what you meant in your last comment?

From looking at the documentation, the rotate option requires a number so using 90deg should fail.

When you tried it with 90, did you try as well setting the rotatable option to true?

Cheers

Thanks. 

No, I just put 90 or 90deg. And as I said, using only the number 90 it does not even spin, and using the 90deg it spins but with error on the screen specified above.

I need this so that when the user takes a picture with the mobile standing (portrait), I need the component to cut to rotate.