-
Notifications
You must be signed in to change notification settings - Fork 101
-
Notifications
You must be signed in to change notification settings - Fork 101
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
About comparison two large size png #84
Comments
Can you run this again, and paste the error message plus the stack trace here? |
I ran it again and paste the error message here: /Library/Ruby/Gems/2.0.0/gems/chunky_png-1.3.4/lib/chunky_png/canvas.rb:334:in from diff.rb:47:in times' from diff.rb:47:in '
|
Most likely, the two images you're using do not have the same dimensions. So the |
Thank you for your help. |
I use iPad to take a screenshot and save as png image.
Its size is about 1.3M.
When I run the code below:
images.first.height.times do |y|
images.first.row(y).each_with_index do |pixel, x|
diff << [x,y] unless pixel == images.last[x,y]
end
end
There will be an error "out of bound " or sth.
Sorry I cannot remember the detail error message.
How can I solve this issue.
The text was updated successfully, but these errors were encountered: