Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in retrieving Media on activeOriginalFocusPoint as int, but gets a decimal #48

Closed
meghuizen opened this issue Feb 16, 2021 · 1 comment

Comments

@meghuizen
Copy link

I'm proposing that the structure of Media.ActiveOriginalFocusPoint get changed, where it doesn't expect an int, but a decimal.

public IDictionary<string, int> ActiveOriginalFocusPoint { get; set; }

This is the error I get:

Newtonsoft.Json.JsonReaderException: 'Input string '268.5' is not a valid integer. Path 'activeOriginalFocusPoint.y', line 1, position 2591.'

image

It tries to fit a decimal value inside an int, which doesn't work.
If you change the datatype from int to decimal, that should fix the problem.

Kind regards,

Michiel

@githuib githuib mentioned this issue Feb 17, 2021
@githuib
Copy link
Contributor

githuib commented Feb 17, 2021

Thanks for mentioning this issue. I've added a fix for it to the upcoming release (2.2.4).

@githuib githuib closed this as completed Mar 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants