I tried reading a image in Image magick like this
img_1 = MiniMagick::Image.open("test_doc_1.jpg")
img_1.data
Getting this output:-
"height": 1650,
"x": 0,
"y": 0
},
"dispose": "Undefined",
"iterations": 0,
"compression": "JPEG",
"quality": 94,
"orientation": "Undefined",
"properties": {
"date:create": "2018-10-15T11:23:13-05:00",
"date:modify": "2018-10-15T11:23:13-05:00",
"exif:ExifImageLength": "1650",
"exif:ExifImageWidth": "1275",
"exif:ExifOffset": "78",
"exif:ResolutionUnit": "2",
"exif:XResolution": "150/1",
"exif:YResolution": "150/1",
"jpeg:colorspace": "2",
"jpeg:sampling-factor": "2x2,1x1,1x1",
"signature": "d7b994f61727c9c009243068a15cf9f471054975385deeb0038adc289948f734"
},
"profiles": {
"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'
This is the end of JSON. I get an error like this. Couldn't find solutions online
JSON::ParserError: unexpected token at ''
Re: JSON::ParserError: unexpected token at ''
Did you only copy paste part of the json data that you get from minimagick? If this is all then this looks like an issue in that library.
Re: JSON::ParserError: unexpected token at ''
This is the whole error trace:
@dlemstra
Traceback (most recent call last):
12: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/bin/irb:13:in `<main>'
11: from org/jruby/RubyKernel.java:1180:in `catch'
10: from org/jruby/RubyKernel.java:1180:in `catch'
9: from org/jruby/RubyKernel.java:1418:in `loop'
8: from org/jruby/RubyKernel.java:1037:in `eval'
7: from (irb):3:in `<eval>'
6: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/mini_magick-4.9.2/lib/mini_magick/image.rb:94:in `open'
5: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/stdlib/open-uri.rb:37:in `open'
4: from org/jruby/RubyKernel.java:311:in `open'
3: from org/jruby/RubyIO.java:1177:in `open'
2: from org/jruby/RubyFile.java:366:in `initialize'
1: from org/jruby/RubyIO.java:1258:in `sysopen'
Errno::ENOENT (No such file or directory - Desktop/Random/test_imgs/test_doc_1.jpg)
irb(main):004:0> img_1 = MiniMagick::Image.open("Users/yamadane/Desktop/Random/test_imgs/test_doc_1.jpg")
Traceback (most recent call last):
12: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/bin/irb:13:in `<main>'
11: from org/jruby/RubyKernel.java:1180:in `catch'
10: from org/jruby/RubyKernel.java:1180:in `catch'
9: from org/jruby/RubyKernel.java:1418:in `loop'
8: from org/jruby/RubyKernel.java:1037:in `eval'
7: from (irb):4:in `<eval>'
6: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/mini_magick-4.9.2/lib/mini_magick/image.rb:94:in `open'
5: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/stdlib/open-uri.rb:37:in `open'
4: from org/jruby/RubyKernel.java:311:in `open'
3: from org/jruby/RubyIO.java:1177:in `open'
2: from org/jruby/RubyFile.java:366:in `initialize'
1: from org/jruby/RubyIO.java:1258:in `sysopen'
Errno::ENOENT (No such file or directory - Users/yamadane/Desktop/Random/test_imgs/test_doc_1.jpg)
irb(main):005:0> img_1 = MiniMagick::Image.open("/Users/yamadane/Desktop/Random/test_imgs/test_doc_1.jpg")
/var/folders/pl/wk15l_6j0k7b1lm8b22myrwhtgk84p/T/mini_magick20181015-1293-13vzuz9.jpg JPEG 1275x1650 1275x1650+0+0 8-bit sRGB 49654B 0.000u 0:00.009
=> #<MiniMagick::Image:0x5411dd90 @info=#<MiniMagick::Image::Info:0x50194e8d @info={}, @path="/var/folders/pl/wk15l_6j0k7b1lm8b22myrwhtgk84p/T/mini_magick20181015-1293-13vzuz9.jpg">, @path="/var/folders/pl/wk15l_6j0k7b1lm8b22myrwhtgk84p/T/mini_magick20181015-1293-13vzuz9.jpg", @tempfile=#<Tempfile:/var/folders/pl/wk15l_6j0k7b1lm8b22myrwhtgk84p/T/mini_magick20181015-1293-13vzuz9.jpg (closed)>>
irb(main):006:0> img_1.data
[{
"image": {
"name": null,
"baseName": "mini_magick20181015-1293-13vzuz9.jpg",
"format": "JPEG",
"formatDescription": "JPEG",
"mimeType": "image/jpeg",
"class": "DirectClass",
"geometry": {
"width": 1275,
"height": 1650,
"x": 0,
"y": 0
},
"resolution": {
"x": 150,
"y": 150
},
"printSize": {
"x": 8.5,
"y": 11
},
"units": "PixelsPerInch",
"type": "Grayscale",
"baseType": "Undefined",
"endianess": "Undefined",
"colorspace": "sRGB",
"depth": 8,
"baseDepth": 8,
"channelDepth": {
"red": 8,
"green": 8,
"blue": 1
},
"pixels": 6311250,
"imageStatistics": {
"Overall": {
"min": 7,
"max": 255,
"mean": 254.61,
"standardDeviation": 1771.22,
"kurtosis": 447.125,
"skewness": -20.3425,
"entropy": 0.0131898
}
},
"channelStatistics": {
"Red": {
"min": 7,
"max": 255,
"mean": 254.61,
"standardDeviation": 1771.22,
"kurtosis": 447.127,
"skewness": -20.3425,
"entropy": 0.0131898
},
"Green": {
"min": 7,
"max": 255,
"mean": 254.61,
"standardDeviation": 1771.22,
"kurtosis": 447.127,
"skewness": -20.3425,
"entropy": 0.0131898
},
"Blue": {
"min": 7,
"max": 255,
"mean": 254.61,
"standardDeviation": 1771.22,
"kurtosis": 447.127,
"skewness": -20.3425,
"entropy": 0.0131898
}
},
"renderingIntent": "Perceptual",
"gamma": 0.454545,
"chromaticity": {
"redPrimary": {
"x": 0.64,
"y": 0.33
},
"greenPrimary": {
"x": 0.3,
"y": 0.6
},
"bluePrimary": {
"x": 0.15,
"y": 0.06
},
"whitePrimary": {
"x": 0.3127,
"y": 0.329
}
},
"matteColor": "#BDBDBD",
"backgroundColor": "#FFFFFF",
"borderColor": "#DFDFDF",
"transparentColor": "#00000000",
"interlace": "None",
"intensity": "Undefined",
"compose": "Over",
"pageGeometry": {
"width": 1275,
"height": 1650,
"x": 0,
"y": 0
},
"dispose": "Undefined",
"iterations": 0,
"compression": "JPEG",
"quality": 94,
"orientation": "Undefined",
"properties": {
"date:create": "2018-10-15T12:50:38-05:00",
"date:modify": "2018-10-15T12:50:38-05:00",
"exif:ExifImageLength": "1650",
"exif:ExifImageWidth": "1275",
"exif:ExifOffset": "78",
"exif:ResolutionUnit": "2",
"exif:XResolution": "150/1",
"exif:YResolution": "150/1",
"jpeg:colorspace": "2",
"jpeg:sampling-factor": "2x2,1x1,1x1",
"signature": "d7b994f61727c9c009243068a15cf9f471054975385deeb0038adc289948f734"
},
"profiles": {
"8bim": {
"length": 40
},
"exif": {
"length": 114
},
"icc": {
"length": 560
},
"iptc": {
"length": 0
}
},
"tainted": false,
"filesize": "49654B",
"numberPixels": "2103750",
"pixelsPerSecond": "42.0748MB",
"userTime": "0.050u",
"elapsedTime": "0:01.050",
"version": "/usr/local/Cellar/imagemagick/7.0.8-12/share/doc/ImageMagick-7//index.html"
}
}
]Traceback (most recent call last):
11: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/bin/irb:13:in `<main>'
10: from org/jruby/RubyKernel.java:1180:in `catch'
9: from org/jruby/RubyKernel.java:1180:in `catch'
8: from org/jruby/RubyKernel.java:1418:in `loop'
7: from org/jruby/RubyKernel.java:1037:in `eval'
6: from (irb):6:in `<eval>'
5: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/mini_magick-4.9.2/lib/mini_magick/image.rb:132:in `block in data'
4: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/mini_magick-4.9.2/lib/mini_magick/image/info.rb:33:in `[]'
3: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/mini_magick-4.9.2/lib/mini_magick/image/info.rb:164:in `data'
2: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/stdlib/json/common.rb:156:in `parse'
1: from json/ext/Parser.java:236:in `parse'
JSON::ParserError (unexpected token at '')
irb(main):007:0> exit()
------------------------------------------------------------
~/_code/ycs-api(document_management*) » bundle exec irb yamadane@MB-YAMADANE
Could not find gem 'ruby-opencv java' in any of the gem sources listed in your Gemfile.
Run `bundle install` to install missing gems.
------------------------------------------------------------
~/_code/ycs-api(document_management*) » nvim Gemfile yamadane@MB-YAMADANE
------------------------------------------------------------
~/_code/ycs-api(document_management*) » bundle exec irb yamadane@MB-YAMADANE
irb(main):001:0> require "active_support_all"
Traceback (most recent call last):
16: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/bundler-1.16.6/lib/bundler/cli.rb:27:in `dispatch'
15: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/bundler-1.16.6/lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch'
14: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/bundler-1.16.6/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
13: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/bundler-1.16.6/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
12: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/bundler-1.16.6/lib/bundler/cli.rb:424:in `exec'
11: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/bundler-1.16.6/lib/bundler/cli/exec.rb:28:in `run'
10: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/bundler-1.16.6/lib/bundler/cli/exec.rb:74:in `kernel_load'
9: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/bundler-1.16.6/lib/bundler/cli/exec.rb:1:in `(root)'
8: from org/jruby/RubyKernel.java:994:in `load'
7: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/bin/irb:13:in `<main>'
6: from org/jruby/RubyKernel.java:1180:in `catch'
5: from org/jruby/RubyKernel.java:1180:in `catch'
4: from org/jruby/RubyKernel.java:1418:in `loop'
3: from org/jruby/RubyKernel.java:1037:in `eval'
2: from (irb):1:in `<eval>'
1: from org/jruby/RubyKernel.java:970:in `require'
LoadError (no such file to load -- active_support_all)
irb(main):002:0> require "active_support/all"
=> true
irb(main):003:0> require "mini_magick"
=> true
irb(main):004:0> img_1 = MiniMagick::Image.open("/Users/yamadane/Desktop/Random/test_imgs/test_doc_1.jpg")
/var/folders/pl/wk15l_6j0k7b1lm8b22myrwhtgk84p/T/mini_magick20181015-2423-1xq17t8.jpg JPEG 1275x1650 1275x1650+0+0 8-bit sRGB 49654B 0.000u 0:00.009
=> #<MiniMagick::Image:0x6136e1fc @info=#<MiniMagick::Image::Info:0x1736c1e4 @info={}, @path="/var/folders/pl/wk15l_6j0k7b1lm8b22myrwhtgk84p/T/mini_magick20181015-2423-1xq17t8.jpg">, @path="/var/folders/pl/wk15l_6j0k7b1lm8b22myrwhtgk84p/T/mini_magick20181015-2423-1xq17t8.jpg", @tempfile=#<Tempfile:/var/folders/pl/wk15l_6j0k7b1lm8b22myrwhtgk84p/T/mini_magick20181015-2423-1xq17t8.jpg (closed)>>
irb(main):005:0> img_1.data
[{
"image": {
"name": null,
"baseName": "mini_magick20181015-2423-1xq17t8.jpg",
"format": "JPEG",
"formatDescription": "JPEG",
"mimeType": "image/jpeg",
"class": "DirectClass",
"geometry": {
"width": 1275,
"height": 1650,
"x": 0,
"y": 0
},
"resolution": {
"x": 150,
"y": 150
},
"printSize": {
"x": 8.5,
"y": 11
},
"units": "PixelsPerInch",
"type": "Grayscale",
"baseType": "Undefined",
"endianess": "Undefined",
"colorspace": "sRGB",
"depth": 8,
"baseDepth": 8,
"channelDepth": {
"red": 8,
"green": 8,
"blue": 1
},
"pixels": 6311250,
"imageStatistics": {
"Overall": {
"min": 7,
"max": 255,
"mean": 254.61,
"standardDeviation": 1771.22,
"kurtosis": 447.125,
"skewness": -20.3425,
"entropy": 0.0131898
}
},
"channelStatistics": {
"Red": {
"min": 7,
"max": 255,
"mean": 254.61,
"standardDeviation": 1771.22,
"kurtosis": 447.127,
"skewness": -20.3425,
"entropy": 0.0131898
},
"Green": {
"min": 7,
"max": 255,
"mean": 254.61,
"standardDeviation": 1771.22,
"kurtosis": 447.127,
"skewness": -20.3425,
"entropy": 0.0131898
},
"Blue": {
"min": 7,
"max": 255,
"mean": 254.61,
"standardDeviation": 1771.22,
"kurtosis": 447.127,
"skewness": -20.3425,
"entropy": 0.0131898
}
},
"renderingIntent": "Perceptual",
"gamma": 0.454545,
"chromaticity": {
"redPrimary": {
"x": 0.64,
"y": 0.33
},
"greenPrimary": {
"x": 0.3,
"y": 0.6
},
"bluePrimary": {
"x": 0.15,
"y": 0.06
},
"whitePrimary": {
"x": 0.3127,
"y": 0.329
}
},
"matteColor": "#BDBDBD",
"backgroundColor": "#FFFFFF",
"borderColor": "#DFDFDF",
"transparentColor": "#00000000",
"interlace": "None",
"intensity": "Undefined",
"compose": "Over",
"pageGeometry": {
"width": 1275,
"height": 1650,
"x": 0,
"y": 0
},
"dispose": "Undefined",
"iterations": 0,
"compression": "JPEG",
"quality": 94,
"orientation": "Undefined",
"properties": {
"date:create": "2018-10-15T12:56:20-05:00",
"date:modify": "2018-10-15T12:56:20-05:00",
"exif:ExifImageLength": "1650",
"exif:ExifImageWidth": "1275",
"exif:ExifOffset": "78",
"exif:ResolutionUnit": "2",
"exif:XResolution": "150/1",
"exif:YResolution": "150/1",
"jpeg:colorspace": "2",
"jpeg:sampling-factor": "2x2,1x1,1x1",
"signature": "d7b994f61727c9c009243068a15cf9f471054975385deeb0038adc289948f734"
},
"profiles": {
"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"
}
}
]Traceback (most recent call last):
16: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/bundler-1.16.6/lib/bundler/cli.rb:424:in `exec'
15: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/bundler-1.16.6/lib/bundler/cli/exec.rb:28:in `run'
14: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/bundler-1.16.6/lib/bundler/cli/exec.rb:74:in `kernel_load'
13: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/bundler-1.16.6/lib/bundler/cli/exec.rb:1:in `(root)'
12: from org/jruby/RubyKernel.java:994:in `load'
11: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/bin/irb:13:in `<main>'
10: from org/jruby/RubyKernel.java:1180:in `catch'
9: from org/jruby/RubyKernel.java:1180:in `catch'
8: from org/jruby/RubyKernel.java:1418:in `loop'
7: from org/jruby/RubyKernel.java:1037:in `eval'
6: from (irb):5:in `<eval>'
5: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/mini_magick-4.9.2/lib/mini_magick/image.rb:132:in `block in data'
4: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/mini_magick-4.9.2/lib/mini_magick/image/info.rb:33:in `[]'
3: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/mini_magick-4.9.2/lib/mini_magick/image/info.rb:164:in `data'
2: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/stdlib/json/common.rb:156:in `parse'
1: from json/ext/Parser.java:236:in `parse'
JSON::ParserError (unexpected token at '')
irb(main):006:0> img_1 = MiniMagick::Image.open("/Users/yamadane/Desktop/Random/t1.png")
/var/folders/pl/wk15l_6j0k7b1lm8b22myrwhtgk84p/T/mini_magick20181015-2423-ddjer1.png PNG 2508x1320 2508x1320+0+0 8-bit sRGB 1732120B 0.000u 0:00.009
=> #<MiniMagick::Image:0xd1c5cf2 @info=#<MiniMagick::Image::Info:0x7e0986c9 @info={}, @path="/var/folders/pl/wk15l_6j0k7b1lm8b22myrwhtgk84p/T/mini_magick20181015-2423-ddjer1.png">, @path="/var/folders/pl/wk15l_6j0k7b1lm8b22myrwhtgk84p/T/mini_magick20181015-2423-ddjer1.png", @tempfile=#<Tempfile:/var/folders/pl/wk15l_6j0k7b1lm8b22myrwhtgk84p/T/mini_magick20181015-2423-ddjer1.png (closed)>>
irb(main):007:0> img_1.data
[{
"image": {
"name": null,
"baseName": "mini_magick20181015-2423-ddjer1.png",
"format": "PNG",
"formatDescription": "PNG",
"mimeType": "image/png",
"class": "DirectClass",
"geometry": {
"width": 2508,
"height": 1320,
"x": 0,
"y": 0
},
"resolution": {
"x": 56.69,
"y": 56.69
},
"printSize": {
"x": 44.2406,
"y": 23.2845
},
"units": "PixelsPerCentimeter",
"type": "TrueColorAlpha",
"baseType": "Undefined",
"endianess": "Undefined",
"colorspace": "sRGB",
"depth": 8,
"baseDepth": 8,
"channelDepth": {
"alpha": 1,
"red": 8,
"green": 8,
"blue": 1
},
"pixels": 13242240,
"imageStatistics": {
"Overall": {
"min": 0,
"max": 255,
"mean": 136.777,
"standardDeviation": 1e-12,
"kurtosis": -1.34355,
"skewness": 0.212475,
"entropy": 0.600091
}
},
"channelStatistics": {
"Alpha": {
"min": 255,
"max": 255,
"mean": 255,
"standardDeviation": 1e-12,
"kurtosis": -3.14825e+57,
"skewness": 4.80394e+40,
"entropy": 4.82164e-05
},
"Red": {
"min": 0,
"max": 255,
"mean": 100.777,
"standardDeviation": 15800.8,
"kurtosis": 0.294265,
"skewness": 0.650834,
"entropy": 0.789438
},
"Green": {
"min": 0,
"max": 255,
"mean": 103.16,
"standardDeviation": 15157.3,
"kurtosis": 0.537732,
"skewness": 0.735063,
"entropy": 0.802232
},
"Blue": {
"min": 0,
"max": 255,
"mean": 88.1728,
"standardDeviation": 17307.8,
"kurtosis": 0.0650327,
"skewness": 0.762741,
"entropy": 0.808644
}
},
"renderingIntent": "Perceptual",
"gamma": 0.454545,
"chromaticity": {
"redPrimary": {
"x": 0.64,
"y": 0.33
},
"greenPrimary": {
"x": 0.3,
"y": 0.6
},
"bluePrimary": {
"x": 0.15,
"y": 0.06
},
"whitePrimary": {
"x": 0.3127,
"y": 0.329
}
},
"matteColor": "#BDBDBD",
"backgroundColor": "#FFFFFF",
"borderColor": "#DFDFDF",
"transparentColor": "#00000000",
"interlace": "None",
"intensity": "Undefined",
"compose": "Over",
"pageGeometry": {
"width": 2508,
"height": 1320,
"x": 0,
"y": 0
},
"dispose": "Undefined",
"iterations": 0,
"compression": "Zip",
"orientation": "Undefined",
"properties": {
"date:create": "2018-10-15T13:01:44-05:00",
"date:modify": "2018-10-15T13:01:44-05:00",
"png:iCCP": "chunk was found",
"png:IHDR.bit-depth-orig": "8",
"png:IHDR.bit_depth": "8",
"png:IHDR.color-type-orig": "6",
"png:IHDR.color_type": "6 (RGBA)",
"png:IHDR.interlace_method": "0 (Not interlaced)",
"png:IHDR.width,height": "2508, 1320",
"png:pHYs": "x_res=5669, y_res=5669, units=1",
"signature": "862f86201dd907ee5ab2893cd8b9c1e0e4459ec3d0c5e80caf11fd957f201421"
},
"profiles": {
"icc": {
"length": 3920
}
},
"tainted": false,
"filesize": "1732120B",
"numberPixels": "3310560",
"pixelsPerSecond": "25.4659MB",
"userTime": "0.130u",
"elapsedTime": "0:01.129",
"version": "/usr/local/Cellar/imagemagick/7.0.8-12/share/doc/ImageMagick-7//index.html"
}
}
]Traceback (most recent call last):
16: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/bundler-1.16.6/lib/bundler/cli.rb:424:in `exec'
15: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/bundler-1.16.6/lib/bundler/cli/exec.rb:28:in `run'
14: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/bundler-1.16.6/lib/bundler/cli/exec.rb:74:in `kernel_load'
13: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/bundler-1.16.6/lib/bundler/cli/exec.rb:1:in `(root)'
12: from org/jruby/RubyKernel.java:994:in `load'
11: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/bin/irb:13:in `<main>'
10: from org/jruby/RubyKernel.java:1180:in `catch'
9: from org/jruby/RubyKernel.java:1180:in `catch'
8: from org/jruby/RubyKernel.java:1418:in `loop'
7: from org/jruby/RubyKernel.java:1037:in `eval'
6: from (irb):7:in `<eval>'
5: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/mini_magick-4.9.2/lib/mini_magick/image.rb:132:in `block in data'
4: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/mini_magick-4.9.2/lib/mini_magick/image/info.rb:33:in `[]'
3: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/mini_magick-4.9.2/lib/mini_magick/image/info.rb:164:in `data'
2: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/stdlib/json/common.rb:156:in `parse'
1: from json/ext/Parser.java:236:in `parse'
JSON::ParserError (unexpected token at '')
@dlemstra
Traceback (most recent call last):
12: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/bin/irb:13:in `<main>'
11: from org/jruby/RubyKernel.java:1180:in `catch'
10: from org/jruby/RubyKernel.java:1180:in `catch'
9: from org/jruby/RubyKernel.java:1418:in `loop'
8: from org/jruby/RubyKernel.java:1037:in `eval'
7: from (irb):3:in `<eval>'
6: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/mini_magick-4.9.2/lib/mini_magick/image.rb:94:in `open'
5: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/stdlib/open-uri.rb:37:in `open'
4: from org/jruby/RubyKernel.java:311:in `open'
3: from org/jruby/RubyIO.java:1177:in `open'
2: from org/jruby/RubyFile.java:366:in `initialize'
1: from org/jruby/RubyIO.java:1258:in `sysopen'
Errno::ENOENT (No such file or directory - Desktop/Random/test_imgs/test_doc_1.jpg)
irb(main):004:0> img_1 = MiniMagick::Image.open("Users/yamadane/Desktop/Random/test_imgs/test_doc_1.jpg")
Traceback (most recent call last):
12: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/bin/irb:13:in `<main>'
11: from org/jruby/RubyKernel.java:1180:in `catch'
10: from org/jruby/RubyKernel.java:1180:in `catch'
9: from org/jruby/RubyKernel.java:1418:in `loop'
8: from org/jruby/RubyKernel.java:1037:in `eval'
7: from (irb):4:in `<eval>'
6: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/mini_magick-4.9.2/lib/mini_magick/image.rb:94:in `open'
5: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/stdlib/open-uri.rb:37:in `open'
4: from org/jruby/RubyKernel.java:311:in `open'
3: from org/jruby/RubyIO.java:1177:in `open'
2: from org/jruby/RubyFile.java:366:in `initialize'
1: from org/jruby/RubyIO.java:1258:in `sysopen'
Errno::ENOENT (No such file or directory - Users/yamadane/Desktop/Random/test_imgs/test_doc_1.jpg)
irb(main):005:0> img_1 = MiniMagick::Image.open("/Users/yamadane/Desktop/Random/test_imgs/test_doc_1.jpg")
/var/folders/pl/wk15l_6j0k7b1lm8b22myrwhtgk84p/T/mini_magick20181015-1293-13vzuz9.jpg JPEG 1275x1650 1275x1650+0+0 8-bit sRGB 49654B 0.000u 0:00.009
=> #<MiniMagick::Image:0x5411dd90 @info=#<MiniMagick::Image::Info:0x50194e8d @info={}, @path="/var/folders/pl/wk15l_6j0k7b1lm8b22myrwhtgk84p/T/mini_magick20181015-1293-13vzuz9.jpg">, @path="/var/folders/pl/wk15l_6j0k7b1lm8b22myrwhtgk84p/T/mini_magick20181015-1293-13vzuz9.jpg", @tempfile=#<Tempfile:/var/folders/pl/wk15l_6j0k7b1lm8b22myrwhtgk84p/T/mini_magick20181015-1293-13vzuz9.jpg (closed)>>
irb(main):006:0> img_1.data
[{
"image": {
"name": null,
"baseName": "mini_magick20181015-1293-13vzuz9.jpg",
"format": "JPEG",
"formatDescription": "JPEG",
"mimeType": "image/jpeg",
"class": "DirectClass",
"geometry": {
"width": 1275,
"height": 1650,
"x": 0,
"y": 0
},
"resolution": {
"x": 150,
"y": 150
},
"printSize": {
"x": 8.5,
"y": 11
},
"units": "PixelsPerInch",
"type": "Grayscale",
"baseType": "Undefined",
"endianess": "Undefined",
"colorspace": "sRGB",
"depth": 8,
"baseDepth": 8,
"channelDepth": {
"red": 8,
"green": 8,
"blue": 1
},
"pixels": 6311250,
"imageStatistics": {
"Overall": {
"min": 7,
"max": 255,
"mean": 254.61,
"standardDeviation": 1771.22,
"kurtosis": 447.125,
"skewness": -20.3425,
"entropy": 0.0131898
}
},
"channelStatistics": {
"Red": {
"min": 7,
"max": 255,
"mean": 254.61,
"standardDeviation": 1771.22,
"kurtosis": 447.127,
"skewness": -20.3425,
"entropy": 0.0131898
},
"Green": {
"min": 7,
"max": 255,
"mean": 254.61,
"standardDeviation": 1771.22,
"kurtosis": 447.127,
"skewness": -20.3425,
"entropy": 0.0131898
},
"Blue": {
"min": 7,
"max": 255,
"mean": 254.61,
"standardDeviation": 1771.22,
"kurtosis": 447.127,
"skewness": -20.3425,
"entropy": 0.0131898
}
},
"renderingIntent": "Perceptual",
"gamma": 0.454545,
"chromaticity": {
"redPrimary": {
"x": 0.64,
"y": 0.33
},
"greenPrimary": {
"x": 0.3,
"y": 0.6
},
"bluePrimary": {
"x": 0.15,
"y": 0.06
},
"whitePrimary": {
"x": 0.3127,
"y": 0.329
}
},
"matteColor": "#BDBDBD",
"backgroundColor": "#FFFFFF",
"borderColor": "#DFDFDF",
"transparentColor": "#00000000",
"interlace": "None",
"intensity": "Undefined",
"compose": "Over",
"pageGeometry": {
"width": 1275,
"height": 1650,
"x": 0,
"y": 0
},
"dispose": "Undefined",
"iterations": 0,
"compression": "JPEG",
"quality": 94,
"orientation": "Undefined",
"properties": {
"date:create": "2018-10-15T12:50:38-05:00",
"date:modify": "2018-10-15T12:50:38-05:00",
"exif:ExifImageLength": "1650",
"exif:ExifImageWidth": "1275",
"exif:ExifOffset": "78",
"exif:ResolutionUnit": "2",
"exif:XResolution": "150/1",
"exif:YResolution": "150/1",
"jpeg:colorspace": "2",
"jpeg:sampling-factor": "2x2,1x1,1x1",
"signature": "d7b994f61727c9c009243068a15cf9f471054975385deeb0038adc289948f734"
},
"profiles": {
"8bim": {
"length": 40
},
"exif": {
"length": 114
},
"icc": {
"length": 560
},
"iptc": {
"length": 0
}
},
"tainted": false,
"filesize": "49654B",
"numberPixels": "2103750",
"pixelsPerSecond": "42.0748MB",
"userTime": "0.050u",
"elapsedTime": "0:01.050",
"version": "/usr/local/Cellar/imagemagick/7.0.8-12/share/doc/ImageMagick-7//index.html"
}
}
]Traceback (most recent call last):
11: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/bin/irb:13:in `<main>'
10: from org/jruby/RubyKernel.java:1180:in `catch'
9: from org/jruby/RubyKernel.java:1180:in `catch'
8: from org/jruby/RubyKernel.java:1418:in `loop'
7: from org/jruby/RubyKernel.java:1037:in `eval'
6: from (irb):6:in `<eval>'
5: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/mini_magick-4.9.2/lib/mini_magick/image.rb:132:in `block in data'
4: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/mini_magick-4.9.2/lib/mini_magick/image/info.rb:33:in `[]'
3: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/mini_magick-4.9.2/lib/mini_magick/image/info.rb:164:in `data'
2: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/stdlib/json/common.rb:156:in `parse'
1: from json/ext/Parser.java:236:in `parse'
JSON::ParserError (unexpected token at '')
irb(main):007:0> exit()
------------------------------------------------------------
~/_code/ycs-api(document_management*) » bundle exec irb yamadane@MB-YAMADANE
Could not find gem 'ruby-opencv java' in any of the gem sources listed in your Gemfile.
Run `bundle install` to install missing gems.
------------------------------------------------------------
~/_code/ycs-api(document_management*) » nvim Gemfile yamadane@MB-YAMADANE
------------------------------------------------------------
~/_code/ycs-api(document_management*) » bundle exec irb yamadane@MB-YAMADANE
irb(main):001:0> require "active_support_all"
Traceback (most recent call last):
16: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/bundler-1.16.6/lib/bundler/cli.rb:27:in `dispatch'
15: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/bundler-1.16.6/lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch'
14: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/bundler-1.16.6/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
13: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/bundler-1.16.6/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
12: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/bundler-1.16.6/lib/bundler/cli.rb:424:in `exec'
11: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/bundler-1.16.6/lib/bundler/cli/exec.rb:28:in `run'
10: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/bundler-1.16.6/lib/bundler/cli/exec.rb:74:in `kernel_load'
9: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/bundler-1.16.6/lib/bundler/cli/exec.rb:1:in `(root)'
8: from org/jruby/RubyKernel.java:994:in `load'
7: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/bin/irb:13:in `<main>'
6: from org/jruby/RubyKernel.java:1180:in `catch'
5: from org/jruby/RubyKernel.java:1180:in `catch'
4: from org/jruby/RubyKernel.java:1418:in `loop'
3: from org/jruby/RubyKernel.java:1037:in `eval'
2: from (irb):1:in `<eval>'
1: from org/jruby/RubyKernel.java:970:in `require'
LoadError (no such file to load -- active_support_all)
irb(main):002:0> require "active_support/all"
=> true
irb(main):003:0> require "mini_magick"
=> true
irb(main):004:0> img_1 = MiniMagick::Image.open("/Users/yamadane/Desktop/Random/test_imgs/test_doc_1.jpg")
/var/folders/pl/wk15l_6j0k7b1lm8b22myrwhtgk84p/T/mini_magick20181015-2423-1xq17t8.jpg JPEG 1275x1650 1275x1650+0+0 8-bit sRGB 49654B 0.000u 0:00.009
=> #<MiniMagick::Image:0x6136e1fc @info=#<MiniMagick::Image::Info:0x1736c1e4 @info={}, @path="/var/folders/pl/wk15l_6j0k7b1lm8b22myrwhtgk84p/T/mini_magick20181015-2423-1xq17t8.jpg">, @path="/var/folders/pl/wk15l_6j0k7b1lm8b22myrwhtgk84p/T/mini_magick20181015-2423-1xq17t8.jpg", @tempfile=#<Tempfile:/var/folders/pl/wk15l_6j0k7b1lm8b22myrwhtgk84p/T/mini_magick20181015-2423-1xq17t8.jpg (closed)>>
irb(main):005:0> img_1.data
[{
"image": {
"name": null,
"baseName": "mini_magick20181015-2423-1xq17t8.jpg",
"format": "JPEG",
"formatDescription": "JPEG",
"mimeType": "image/jpeg",
"class": "DirectClass",
"geometry": {
"width": 1275,
"height": 1650,
"x": 0,
"y": 0
},
"resolution": {
"x": 150,
"y": 150
},
"printSize": {
"x": 8.5,
"y": 11
},
"units": "PixelsPerInch",
"type": "Grayscale",
"baseType": "Undefined",
"endianess": "Undefined",
"colorspace": "sRGB",
"depth": 8,
"baseDepth": 8,
"channelDepth": {
"red": 8,
"green": 8,
"blue": 1
},
"pixels": 6311250,
"imageStatistics": {
"Overall": {
"min": 7,
"max": 255,
"mean": 254.61,
"standardDeviation": 1771.22,
"kurtosis": 447.125,
"skewness": -20.3425,
"entropy": 0.0131898
}
},
"channelStatistics": {
"Red": {
"min": 7,
"max": 255,
"mean": 254.61,
"standardDeviation": 1771.22,
"kurtosis": 447.127,
"skewness": -20.3425,
"entropy": 0.0131898
},
"Green": {
"min": 7,
"max": 255,
"mean": 254.61,
"standardDeviation": 1771.22,
"kurtosis": 447.127,
"skewness": -20.3425,
"entropy": 0.0131898
},
"Blue": {
"min": 7,
"max": 255,
"mean": 254.61,
"standardDeviation": 1771.22,
"kurtosis": 447.127,
"skewness": -20.3425,
"entropy": 0.0131898
}
},
"renderingIntent": "Perceptual",
"gamma": 0.454545,
"chromaticity": {
"redPrimary": {
"x": 0.64,
"y": 0.33
},
"greenPrimary": {
"x": 0.3,
"y": 0.6
},
"bluePrimary": {
"x": 0.15,
"y": 0.06
},
"whitePrimary": {
"x": 0.3127,
"y": 0.329
}
},
"matteColor": "#BDBDBD",
"backgroundColor": "#FFFFFF",
"borderColor": "#DFDFDF",
"transparentColor": "#00000000",
"interlace": "None",
"intensity": "Undefined",
"compose": "Over",
"pageGeometry": {
"width": 1275,
"height": 1650,
"x": 0,
"y": 0
},
"dispose": "Undefined",
"iterations": 0,
"compression": "JPEG",
"quality": 94,
"orientation": "Undefined",
"properties": {
"date:create": "2018-10-15T12:56:20-05:00",
"date:modify": "2018-10-15T12:56:20-05:00",
"exif:ExifImageLength": "1650",
"exif:ExifImageWidth": "1275",
"exif:ExifOffset": "78",
"exif:ResolutionUnit": "2",
"exif:XResolution": "150/1",
"exif:YResolution": "150/1",
"jpeg:colorspace": "2",
"jpeg:sampling-factor": "2x2,1x1,1x1",
"signature": "d7b994f61727c9c009243068a15cf9f471054975385deeb0038adc289948f734"
},
"profiles": {
"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"
}
}
]Traceback (most recent call last):
16: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/bundler-1.16.6/lib/bundler/cli.rb:424:in `exec'
15: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/bundler-1.16.6/lib/bundler/cli/exec.rb:28:in `run'
14: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/bundler-1.16.6/lib/bundler/cli/exec.rb:74:in `kernel_load'
13: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/bundler-1.16.6/lib/bundler/cli/exec.rb:1:in `(root)'
12: from org/jruby/RubyKernel.java:994:in `load'
11: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/bin/irb:13:in `<main>'
10: from org/jruby/RubyKernel.java:1180:in `catch'
9: from org/jruby/RubyKernel.java:1180:in `catch'
8: from org/jruby/RubyKernel.java:1418:in `loop'
7: from org/jruby/RubyKernel.java:1037:in `eval'
6: from (irb):5:in `<eval>'
5: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/mini_magick-4.9.2/lib/mini_magick/image.rb:132:in `block in data'
4: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/mini_magick-4.9.2/lib/mini_magick/image/info.rb:33:in `[]'
3: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/mini_magick-4.9.2/lib/mini_magick/image/info.rb:164:in `data'
2: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/stdlib/json/common.rb:156:in `parse'
1: from json/ext/Parser.java:236:in `parse'
JSON::ParserError (unexpected token at '')
irb(main):006:0> img_1 = MiniMagick::Image.open("/Users/yamadane/Desktop/Random/t1.png")
/var/folders/pl/wk15l_6j0k7b1lm8b22myrwhtgk84p/T/mini_magick20181015-2423-ddjer1.png PNG 2508x1320 2508x1320+0+0 8-bit sRGB 1732120B 0.000u 0:00.009
=> #<MiniMagick::Image:0xd1c5cf2 @info=#<MiniMagick::Image::Info:0x7e0986c9 @info={}, @path="/var/folders/pl/wk15l_6j0k7b1lm8b22myrwhtgk84p/T/mini_magick20181015-2423-ddjer1.png">, @path="/var/folders/pl/wk15l_6j0k7b1lm8b22myrwhtgk84p/T/mini_magick20181015-2423-ddjer1.png", @tempfile=#<Tempfile:/var/folders/pl/wk15l_6j0k7b1lm8b22myrwhtgk84p/T/mini_magick20181015-2423-ddjer1.png (closed)>>
irb(main):007:0> img_1.data
[{
"image": {
"name": null,
"baseName": "mini_magick20181015-2423-ddjer1.png",
"format": "PNG",
"formatDescription": "PNG",
"mimeType": "image/png",
"class": "DirectClass",
"geometry": {
"width": 2508,
"height": 1320,
"x": 0,
"y": 0
},
"resolution": {
"x": 56.69,
"y": 56.69
},
"printSize": {
"x": 44.2406,
"y": 23.2845
},
"units": "PixelsPerCentimeter",
"type": "TrueColorAlpha",
"baseType": "Undefined",
"endianess": "Undefined",
"colorspace": "sRGB",
"depth": 8,
"baseDepth": 8,
"channelDepth": {
"alpha": 1,
"red": 8,
"green": 8,
"blue": 1
},
"pixels": 13242240,
"imageStatistics": {
"Overall": {
"min": 0,
"max": 255,
"mean": 136.777,
"standardDeviation": 1e-12,
"kurtosis": -1.34355,
"skewness": 0.212475,
"entropy": 0.600091
}
},
"channelStatistics": {
"Alpha": {
"min": 255,
"max": 255,
"mean": 255,
"standardDeviation": 1e-12,
"kurtosis": -3.14825e+57,
"skewness": 4.80394e+40,
"entropy": 4.82164e-05
},
"Red": {
"min": 0,
"max": 255,
"mean": 100.777,
"standardDeviation": 15800.8,
"kurtosis": 0.294265,
"skewness": 0.650834,
"entropy": 0.789438
},
"Green": {
"min": 0,
"max": 255,
"mean": 103.16,
"standardDeviation": 15157.3,
"kurtosis": 0.537732,
"skewness": 0.735063,
"entropy": 0.802232
},
"Blue": {
"min": 0,
"max": 255,
"mean": 88.1728,
"standardDeviation": 17307.8,
"kurtosis": 0.0650327,
"skewness": 0.762741,
"entropy": 0.808644
}
},
"renderingIntent": "Perceptual",
"gamma": 0.454545,
"chromaticity": {
"redPrimary": {
"x": 0.64,
"y": 0.33
},
"greenPrimary": {
"x": 0.3,
"y": 0.6
},
"bluePrimary": {
"x": 0.15,
"y": 0.06
},
"whitePrimary": {
"x": 0.3127,
"y": 0.329
}
},
"matteColor": "#BDBDBD",
"backgroundColor": "#FFFFFF",
"borderColor": "#DFDFDF",
"transparentColor": "#00000000",
"interlace": "None",
"intensity": "Undefined",
"compose": "Over",
"pageGeometry": {
"width": 2508,
"height": 1320,
"x": 0,
"y": 0
},
"dispose": "Undefined",
"iterations": 0,
"compression": "Zip",
"orientation": "Undefined",
"properties": {
"date:create": "2018-10-15T13:01:44-05:00",
"date:modify": "2018-10-15T13:01:44-05:00",
"png:iCCP": "chunk was found",
"png:IHDR.bit-depth-orig": "8",
"png:IHDR.bit_depth": "8",
"png:IHDR.color-type-orig": "6",
"png:IHDR.color_type": "6 (RGBA)",
"png:IHDR.interlace_method": "0 (Not interlaced)",
"png:IHDR.width,height": "2508, 1320",
"png:pHYs": "x_res=5669, y_res=5669, units=1",
"signature": "862f86201dd907ee5ab2893cd8b9c1e0e4459ec3d0c5e80caf11fd957f201421"
},
"profiles": {
"icc": {
"length": 3920
}
},
"tainted": false,
"filesize": "1732120B",
"numberPixels": "3310560",
"pixelsPerSecond": "25.4659MB",
"userTime": "0.130u",
"elapsedTime": "0:01.129",
"version": "/usr/local/Cellar/imagemagick/7.0.8-12/share/doc/ImageMagick-7//index.html"
}
}
]Traceback (most recent call last):
16: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/bundler-1.16.6/lib/bundler/cli.rb:424:in `exec'
15: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/bundler-1.16.6/lib/bundler/cli/exec.rb:28:in `run'
14: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/bundler-1.16.6/lib/bundler/cli/exec.rb:74:in `kernel_load'
13: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/bundler-1.16.6/lib/bundler/cli/exec.rb:1:in `(root)'
12: from org/jruby/RubyKernel.java:994:in `load'
11: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/bin/irb:13:in `<main>'
10: from org/jruby/RubyKernel.java:1180:in `catch'
9: from org/jruby/RubyKernel.java:1180:in `catch'
8: from org/jruby/RubyKernel.java:1418:in `loop'
7: from org/jruby/RubyKernel.java:1037:in `eval'
6: from (irb):7:in `<eval>'
5: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/mini_magick-4.9.2/lib/mini_magick/image.rb:132:in `block in data'
4: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/mini_magick-4.9.2/lib/mini_magick/image/info.rb:33:in `[]'
3: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/gems/shared/gems/mini_magick-4.9.2/lib/mini_magick/image/info.rb:164:in `data'
2: from /Users/yamadane/.rbenv/versions/jruby-9.2.0.0/lib/ruby/stdlib/json/common.rb:156:in `parse'
1: from json/ext/Parser.java:236:in `parse'
JSON::ParserError (unexpected token at '')
Re: JSON::ParserError: unexpected token at ''
The JSON looks correct to me. You probably need to report this to the MiniMagick team.