Module: ImageDiff::Differ::ImageMagick
- Defined in:
- lib/image_diff/differ/image_magick.rb
Overview
ImageMagick compare interface
Constant Summary collapse
- CMD =
'compare -metric rmse '
Class Method Summary collapse
Class Method Details
.absolute_error(args) ⇒ Object
13 14 15 16 17 |
# File 'lib/image_diff/differ/image_magick.rb', line 13 def absolute_error(args) Open3.popen2e(CMD + args) do |_stdin, stdout_stderr, wait_thr| [wait_thr.value.exitstatus, stdout_stderr.readlines.join("\n")] end end |