Search found 4 matches

by edalquist
2015-06-27T09:58:00-07:00
Forum: Bugs
Topic: Convert doesn't properly escape JSON output
Replies: 5
Views: 2995

Re: Convert doesn't properly escape JSON output

Thanks for merging (a much better version of) the fix!
https://github.com/ImageMagick/ImageMagick/pull/14
by edalquist
2015-06-22T10:02:24-07:00
Forum: Bugs
Topic: Convert doesn't properly escape JSON output
Replies: 5
Views: 2995

Re: Convert doesn't properly escape JSON output

Oh I had found the svn code, would https://github.com/ImageMagick/ImageMagick be the correct place to submit a patch?

C is not my strong suit but I figure adding a simple string escaping method in one file should be easy enough.
by edalquist
2015-06-22T09:05:15-07:00
Forum: Bugs
Topic: Convert doesn't properly escape JSON output
Replies: 5
Views: 2995

Re: Convert doesn't properly escape JSON output

It looks like just adding a basic JSON string escaping into ./coders/json.c might fix the issue, I might see if I can fix it tonight.
by edalquist
2015-06-22T08:26:52-07:00
Forum: Bugs
Topic: Convert doesn't properly escape JSON output
Replies: 5
Views: 2995

Convert doesn't properly escape JSON output

I'm using the following command to extract a metadata dump from images for later processing: "convert IMAGEFILE -moments json:-" I've found a few issues where the JSON output is invalid due to ImageMagick not escaping the property values correctly. There is an example image and JSON output file here ...