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

Bad JSON near originGeometry key #979

Closed
tpett opened this issue Feb 9, 2018 · 0 comments · Fixed by #980
Closed

Bad JSON near originGeometry key #979

tpett opened this issue Feb 9, 2018 · 0 comments · Fixed by #980

Comments

@tpett
Copy link
Contributor

tpett commented Feb 9, 2018

Description

The JSON output option for the convert command produces invalid JSON in certain circumstances (according to RFC 7159) and causes errors when trying to parse it.

Steps to Reproduce

Using an image that has a page origin that is not (0, 0) the originGeometry line will have the format originGeometry: +123+123, which is invalid. The data should be wrapped in quotation marks. See line 1452 of json.c

$ convert inputFile.jpg json:

System Configuration

I've seen this in Linux and OS X on recent versions of v7.

tpett added a commit to tpett/ImageMagick that referenced this issue Feb 9, 2018
dlemstra pushed a commit that referenced this issue Feb 9, 2018
tpett added a commit to tpett/ImageMagick that referenced this issue Feb 9, 2018
dlemstra pushed a commit that referenced this issue Feb 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant