Search found 3 matches

by rubymonk
2018-10-15T11:07:45-07:00
Forum: Bugs
Topic: JSON::ParserError: unexpected token at ''
Replies: 3
Views: 8759

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 `l...
by rubymonk
2018-10-15T09:37:58-07:00
Forum: Bugs
Topic: JSON::ParserError: unexpected token at ''
Replies: 3
Views: 8759

JSON::ParserError: unexpected token at ''

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"...
by rubymonk
2018-10-08T13:22:56-07:00
Forum: Users
Topic: Identifying whether a jpg image is blank using RUBY programming
Replies: 2
Views: 3122

Identifying whether a jpg image is blank using RUBY programming

I have an input image known as test.jpg. I want to create a function in Ruby which will identify if the image is white or close to white.(The function should incorporate some noise) and return a boolean value true or false.