With these two files, there are a few pixels that are different, but the visual diff does not color them in red.
However, magick::image_compare() does show the differences.
oldfile <- "file1.png"
newfile <- "file2.png"
library(magick)
old <- magick::image_read(oldfile)
new <- magick::image_read(newfile)
# Shows difference
image_compare(old, new)
# Does not show difference
library(diffviewer)
diffviewer::visual_diff(oldfile, newfile)
This is the difference image generated by image_compare(). I've added arrows pointing to the pixels that are different.
Here's the info about the pixels that are different:
With these two files, there are a few pixels that are different, but the visual diff does not color them in red. However,
magick::image_compare()
does show the differences.This is the difference image generated by
image_compare()
. I've added arrows pointing to the pixels that are different.Here's the info about the pixels that are different:
cc @nstrayer