我试图像这样在Image Magick中读取图像:
img_1 = MiniMagick::Image.open("test_doc_1.jpg")
img_1.data
这是JSON数据的最后一部分:
"8bim": {
"length": 40
},
"exif": {
"length": 114
},
"icc": {
"length": 560
},
"iptc": {
"length": 0
}
},
"tainted": false,
"filesize": "49654B",
"numberPixels": "2103750",
"pixelsPerSecond": "42.075MB",
"userTime": "0.050u",
"elapsedTime": "0:01.049",
"version": "/usr/local/Cellar/imagemagick/7.0.8-12/share/doc/ImageMagick-7//index.html"
}
}
我收到这样的错误:
]JSON::ParserError: unexpected token at ''
from json/ext/Parser.java:236:in `parse'
此错误是什么意思,我该如何解决?