You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
diffviewer fails to show differences in some PNG files #9
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:
Activity
wch commentedon Jun 16, 2021
I've fixed this in rstudio/shinytest#391, and the same fix should work here.
hadley commentedon Jun 16, 2021
Would you mind doing a PR?
Don't ignore any pixel differences. Closes #9
Don't ignore any pixel differences. Closes #9
Don't ignore any pixel differences. Closes #9