[{"data":1,"prerenderedAt":1623},["ShallowReactive",2],{"navigation_docs":3,"-deep-dives-diff-engines":121,"-deep-dives-diff-engines-surround":1618},[4,41,51,56,104,116],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":40},"Learn","i-lucide-book-open","\u002Flearn","1.learn",[10,15,20,25,30,35],{"title":11,"path":12,"stem":13,"icon":14},"What visual regression testing is","\u002Flearn\u002Fwhat-is-visual-regression-testing","1.learn\u002F1.what-is-visual-regression-testing","i-lucide-eye",{"title":16,"path":17,"stem":18,"icon":19},"How image diffing works","\u002Flearn\u002Fhow-image-diffing-works","1.learn\u002F2.how-image-diffing-works","i-lucide-diff",{"title":21,"path":22,"stem":23,"icon":24},"Why screenshots flake","\u002Flearn\u002Fwhy-screenshots-flake","1.learn\u002F3.why-screenshots-flake","i-lucide-shuffle",{"title":26,"path":27,"stem":28,"icon":29},"Baselines and approval","\u002Flearn\u002Fbaselines-and-approval","1.learn\u002F4.baselines-and-approval","i-lucide-check-check",{"title":31,"path":32,"stem":33,"icon":34},"Running in CI","\u002Flearn\u002Frunning-in-ci","1.learn\u002F5.running-in-ci","i-lucide-workflow",{"title":36,"path":37,"stem":38,"icon":39},"FAQ","\u002Flearn\u002Ffaq","1.learn\u002F7.faq","i-lucide-circle-help",false,{"title":42,"icon":43,"path":44,"stem":45,"children":46,"page":40},"Deep dives","i-lucide-telescope","\u002Fdeep-dives","3.deep-dives",[47],{"title":48,"path":49,"stem":50,"icon":43},"Types of visual diffing","\u002Fdeep-dives\u002Fdiff-engines","3.deep-dives\u002F1.diff-engines",{"title":52,"path":53,"stem":54,"icon":55},"Compare the tools","\u002Fcompare","4.compare","i-lucide-scale",{"title":57,"path":58,"stem":59,"children":60,"icon":63},"Manifest","\u002Fmanifest","5.manifest\u002F1.index",[61,64,69,74,79,84,89,94,99],{"title":62,"path":58,"stem":59,"icon":63},"The run manifest","i-lucide-file-json",{"title":65,"path":66,"stem":67,"icon":68},"Write your own converter","\u002Fmanifest\u002Fwrite-a-converter","5.manifest\u002F10.write-a-converter","i-lucide-wrench",{"title":70,"path":71,"stem":72,"icon":73},"The format","\u002Fmanifest\u002Fformat","5.manifest\u002F2.format","i-lucide-file-code",{"title":75,"path":76,"stem":77,"icon":78},"Reading manifests","\u002Fmanifest\u002Freading","5.manifest\u002F3.reading","i-lucide-book-open-check",{"title":80,"path":81,"stem":82,"icon":83},"Merging the manifests of a run","\u002Fmanifest\u002Fmerging","5.manifest\u002F4.merging","i-lucide-merge",{"title":85,"path":86,"stem":87,"icon":88},"Writing manifests","\u002Fmanifest\u002Fwriting","5.manifest\u002F5.writing","i-lucide-pencil-line",{"title":90,"path":91,"stem":92,"icon":93},"Converting to and from other formats","\u002Fmanifest\u002Fconverting","5.manifest\u002F6.converting","i-lucide-arrow-left-right",{"title":95,"path":96,"stem":97,"icon":98},"Reference","\u002Fmanifest\u002Freference","5.manifest\u002F7.reference","i-lucide-list",{"title":100,"path":101,"stem":102,"icon":103},"Schema reference","\u002Fmanifest\u002Fschema","5.manifest\u002F8.schema","i-lucide-braces",{"title":105,"path":106,"stem":107,"children":108,"icon":14},"Viewer","\u002Fviewer","6.viewer\u002F1.index",[109,111],{"title":110,"path":106,"stem":107,"icon":14},"In-browser Viewer",{"title":112,"path":113,"stem":114,"icon":115},"Command line","\u002Fviewer\u002Fcli","6.viewer\u002F2.cli","i-lucide-terminal",{"title":117,"path":118,"stem":119,"icon":120},"Which diff algorithm is best for you?","\u002Fdiff-algorithms","8.diff-algorithms","i-lucide-git-compare",{"id":122,"title":48,"body":123,"description":1611,"extension":1612,"links":1613,"meta":1614,"navigation":1615,"path":49,"seo":1616,"stem":50,"__hash__":1617},"docs\u002F3.deep-dives\u002F1.diff-engines.md",{"type":124,"value":125,"toc":1589},"minimark",[126,133,138,141,172,175,179,218,232,236,239,244,411,414,418,444,455,458,462,465,560,564,571,575,679,683,749,752,756,770,797,829,838,842,857,864,868,871,993,997,1163,1167,1176,1182,1201,1227,1231,1239,1243],[127,128,129,132],"p",{},[130,131,16],"a",{"href":17}," explains the two limits every tool exposes: a color tolerance per pixel and a maximum diff ratio per image. This deep dive is about the ideas behind them. Dozens of tools sit on a handful of approaches, and the approach matters more than the library: it decides what a threshold means, why anti-aliasing does or does not show up in your diffs, and which kinds of change the comparison can never see. The libraries below are examples of each type, not a catalog.",[134,135,137],"h2",{"id":136},"what-every-comparison-decides","What every comparison decides",[127,139,140],{},"Every comparator answers the same questions, and the types differ in how:",[142,143,144,160,166],"ol",{},[145,146,147,151,152,156,157,159],"li",{},[148,149,150],"strong",{},"Are these two pixels the same color?"," A color metric turns two RGBA values into a distance and a tolerance decides how far apart \"the same\" may be. The metric sets the scale of the tolerance, which is why ",[153,154,155],"code",{},"0.1"," in one tool is not ",[153,158,155],{}," in another.",[145,161,162,165],{},[148,163,164],{},"Is this differing pixel just anti-aliasing?"," Text and diagonal edges are drawn with partially covered pixels whose exact values depend on the font engine and the rasterizer. A comparison either detects such pixels and ignores them, absorbs them with a blunter tolerance, or counts them.",[145,167,168,171],{},[148,169,170],{},"How much is too much, and what do I report?"," A count of differing pixels, a percentage, a boolean with bounding boxes, a similarity score, or a verdict from a service. The maximum diff ratio of the learn chapter only makes sense where the comparison reports a count.",[127,173,174],{},"A smaller fourth question is what happens when the images differ in size: a thrown error, a failed comparison with a diff image anyway, or a comparison of the overlapping region.",[134,176,178],{"id":177},"exact-comparison","Exact comparison",[127,180,181,182,185,186,189,190,193,194,197,198,201,202,205,206,209,210,213,214,217],{},"The simplest type: a pixel differs if any channel differs at all. Flutter's golden tests work this way (",[153,183,184],{},"matchesGoldenFile"," with the default ",[153,187,188],{},"LocalFileComparator"," requires an exact match, reports ",[153,191,192],{},"diffPercent"," and writes four images on failure), and so does swift-snapshot-testing with its defaults (",[153,195,196],{},"precision"," and ",[153,199,200],{},"perceptualPrecision"," both ",[153,203,204],{},"1","), Paparazzi's ",[153,207,208],{},"pixelperfect"," differ, Resemble.js with ",[153,211,212],{},"ignore: 'nothing'",", and any pixel-based tool whose threshold is set to ",[153,215,216],{},"0",".",[127,219,220,221,224,225,228,229,231],{},"Exact comparison has no false negatives and, on a stable renderer, few false positives. Flutter makes it workable by controlling the renderer: the test font (Ahem) and software rendering remove the sources of drift in the first place. On a browser screenshot taken on a different machine, the same strictness flags every anti-aliased letter edge, which is why most web tools add a tolerance. Flutter has no tolerance in the framework, but the ",[153,222,223],{},"goldenFileComparator"," documentation shows the pattern for one: a subclass whose ",[153,226,227],{},"compare"," accepts a ",[153,230,192],{}," below a chosen value.",[134,233,235],{"id":234},"tolerance-based-pixel-diffing","Tolerance-based pixel diffing",[127,237,238],{},"The mainstream type, and the one behind most tools you will meet. Each pixel pair gets a color distance and counts as different when the distance exceeds a tolerance; the differing pixels are counted, painted into a diff image and compared with a limit. What separates the examples is the color distance, the anti-aliasing handling and the reporting.",[240,241,243],"h3",{"id":242},"the-color-distance","The color distance",[245,246,247,292,346],"ul",{},[145,248,249,252,253,259,260,263,264,267,268,271,272,274,275,280,281,283,284,287,288,291],{},[148,250,251],{},"Weighted luminance and chroma (YIQ)."," ",[130,254,258],{"href":255,"rel":256},"https:\u002F\u002Fgithub.com\u002Fmapbox\u002Fpixelmatch",[257],"nofollow","pixelmatch",", the reference implementation for the JavaScript ecosystem, converts both pixels to YIQ (NTSC luminance plus two chroma axes), weights the squared differences (",[153,261,262],{},"0.5053·ΔY² + 0.299·ΔI² + 0.1957·ΔQ²",") and compares the result with ",[153,265,266],{},"35215 · threshold²",", 35215 being the largest value the metric can produce (black against white). Its ",[153,269,270],{},"threshold"," (0 to 1, default ",[153,273,155],{},") is therefore a fraction of the black-white distance with a squared relation. Luminance differences weigh most, which matches how eyes work, and semi-transparent pixels are blended against a background first (white up to version 7.1, a per-pixel checkerboard since 7.2, so that two colors that only look alike over white do not pass). ",[130,276,279],{"href":277,"rel":278},"https:\u002F\u002Fgithub.com\u002FdmtrKovalenko\u002Fodiff",[257],"odiff"," uses the same coefficients and limit, so a given ",[153,282,270],{}," means the same in both, and Chromatic's ",[153,285,286],{},"diffThreshold"," (default ",[153,289,290],{},"0.063",") is described as a YIQ color difference as well.",[145,293,294,297,298,303,304,306,307,312,313,316,317,320,321,324,325,327,328,330,331,334,335,338,339,341,342,345],{},[148,295,296],{},"Perceptual color spaces."," pixelmatch 8.0.0 replaced YIQ with ",[130,299,302],{"href":300,"rel":301},"https:\u002F\u002Fbottosson.github.io\u002Fposts\u002Foklab\u002F",[257],"OKLab"," and the HyAB distance (the absolute lightness difference plus the Euclidean chroma distance), which tracks perceived differences much better across the whole gamut. The ",[153,305,270],{}," scale is unchanged, but the counts differ, so a baseline suite moving to version 8 re-measures its tolerances. At the time of writing every tool that embeds pixelmatch still runs a YIQ-era copy. ",[130,308,311],{"href":309,"rel":310},"https:\u002F\u002Fgithub.com\u002Fgemini-testing\u002Flooks-same",[257],"looks-same"," goes to CIE L*a*b* and CIEDE2000, with a ",[153,314,315],{},"tolerance"," whose default ",[153,318,319],{},"2.3"," is the just-noticeable difference. swift-snapshot-testing uses Core Image's ",[153,322,323],{},"CILabDeltaE"," when ",[153,326,200],{}," is below ",[153,329,204],{},": a pixel passes when its ΔE is at most ",[153,332,333],{},"(1 − perceptualPrecision) × 100",", so ",[153,336,337],{},"0.98"," allows a ΔE of 2, and the docs say ",[153,340,337],{}," to ",[153,343,344],{},"0.99"," \"mimics the precision of the human eye\".",[145,347,348,252,351,356,357,360,361,364,365,368,369,372,373,376,377,380,381,384,385,388,389,392,393,398,399,402,403,406,407,410],{},[148,349,350],{},"Per-channel RGB.",[130,352,355],{"href":353,"rel":354},"https:\u002F\u002Fgithub.com\u002Frsmbl\u002FResemble.js",[257],"Resemble.js"," predates pixelmatch and reasons in plain RGB: red, green, blue and alpha may each differ by up to 16 (on a 0 to 255 scale) plus a brightness rule (",[153,358,359],{},"0.3·R + 0.59·G + 0.11·B"," between ",[153,362,363],{},"minBrightness"," 16 and ",[153,366,367],{},"maxBrightness"," 240). Its ",[153,370,371],{},"ignore"," presets change the numbers: ",[153,374,375],{},"nothing"," is exact, ",[153,378,379],{},"less"," is the default, ",[153,382,383],{},"antialiasing"," widens the channels to 32 and turns the anti-aliasing logic on, ",[153,386,387],{},"colors"," compares brightness only (so a hue change passes) and ",[153,390,391],{},"alpha"," ignores alpha. Dropbox's ",[130,394,397],{"href":395,"rel":396},"https:\u002F\u002Fgithub.com\u002Fdropbox\u002Fdiffer",[257],"differ",", under Roborazzi, uses the plain Euclidean distance between two RGBA colors (",[153,400,401],{},"maxDistance","; differ's own default is ",[153,404,405],{},"0.001",", Roborazzi's default comparator uses ",[153,408,409],{},"0.007",").",[127,412,413],{},"The practical consequence: a tolerance copied from one tool's docs into another's config is a guess. A fraction of the black-white distance, a per-channel integer and a ΔE are different units.",[240,415,417],{"id":416},"anti-aliasing","Anti-aliasing",[127,419,420,421,425,426,429,430,433,434,287,437,439,440,443],{},"With a plain tolerance, raising it far enough to hide anti-aliasing also hides real tint changes. The better answer, implemented by pixelmatch, odiff, looks-same and Chromatic, is a detector from Vyšniauskas's 2009 paper \"Anti-aliased pixel and intensity slope detector\". For a differing pixel it looks at the 8 neighbors: if more than two are identical to the pixel it is not anti-aliasing; if there is no darker ",[422,423,424],"em",{},"and"," no brighter neighbor it is not anti-aliasing; otherwise, if the darkest or the brightest neighbor has three or more identical siblings in ",[422,427,428],{},"both"," images, the pixel sits on an intensity slope between two flat areas and counts as anti-aliased. In pixelmatch such pixels are painted yellow and not counted (",[153,431,432],{},"includeAA: false",", the default), and a pixel that is anti-aliased in either image is excluded. looks-same adds an ",[153,435,436],{},"antialiasingTolerance",[153,438,216],{},"; its README advises against going above 10) and an ",[153,441,442],{},"ignoreCaret"," option unique to it: the thin vertical bar of a blinking text cursor is recognized and ignored.",[127,445,446,447,450,451,454],{},"Resemble.js has a blunter rule. With ",[153,448,449],{},"ignoreAntialiasing",", a pixel counts as anti-aliased when, among its 8 neighbors, more than one is strongly contrasting or more than one differs in hue by more than 0.3, or fewer than two are identical to it; such pixels are then compared by brightness alone. On large images (either side above ",[153,452,453],{},"largeImageThreshold",", default 1200 px) the pass samples only every sixth row and column to stay fast.",[127,456,457],{},"Flutter and swift-snapshot-testing have no detector at all. The perceptual tolerance plays that role in Swift, a pinned renderer in Flutter.",[240,459,461],{"id":460},"what-it-reports","What it reports",[127,463,464],{},"This is where the examples differ most, and it decides whether a maximum diff ratio exists:",[245,466,467,504,543],{},[145,468,469,472,473,476,477,479,480,483,484,487,488,491,492,495,496,499,500,503],{},[148,470,471],{},"A count"," of differing pixels: pixelmatch (and, since 8.0.0, optionally the largest count inside any ",[153,474,475],{},"windowSize","×",[153,478,475],{}," square, so scattered noise stays low while a compact change stands out; plus an ",[153,481,482],{},"ignoreMask","). The ratio is up to the caller: ",[153,485,486],{},"count \u002F (width × height)",". odiff returns ",[153,489,490],{},"{ match, reason, diffCount, diffPercentage }",", with ",[153,493,494],{},"reason: 'layout-diff'"," for a size mismatch when ",[153,497,498],{},"--fail-on-layout"," is set, plus ignore regions (",[153,501,502],{},"--ignore x1:y1-x2:y2","), a diff mask and a server mode for thousands of comparisons.",[145,505,506,509,510,513,514,517,518,521,522,525,526,525,529,532,533,287,536,538,539,542],{},[148,507,508],{},"A percentage and more:"," Resemble.js returns ",[153,511,512],{},"misMatchPercentage"," (a string with two decimals), ",[153,515,516],{},"rawMisMatchPercentage",", dimension information (it compares anyway), ",[153,519,520],{},"diffBounds"," and a diff image in a configurable style (",[153,523,524],{},"flat",", ",[153,527,528],{},"movement",[153,530,531],{},"diffOnly"," and others). BackstopJS, which runs Resemble through a fork of the Node port, exposes it as the per-scenario ",[153,534,535],{},"misMatchThreshold",[153,537,155],{},", meaning 0.1% of the pixels); because the value is rounded to two decimals, Backstop offers ",[153,540,541],{},"usePreciseMatching"," for thresholds below 0.01%.",[145,544,545,548,549,552,553,525,556,559],{},[148,546,547],{},"A boolean plus where:"," looks-same returns ",[153,550,551],{},"{ equal, diffBounds, diffClusters }",", with clusters (",[153,554,555],{},"shouldCluster",[153,557,558],{},"clustersSize",", default 10) grouping nearby differing pixels into rectangles a reviewer reads as \"three things changed\". There is no maximum diff ratio.",[240,561,563],{"id":562},"speed","Speed",[127,565,566,567,570],{},"pixelmatch is one pass in JavaScript with a fast path for identical images, fast enough that the PNG decode usually costs more than the comparison. Where it is not, the same algorithm is available faster: odiff is a native binary (Zig with SIMD paths) that decodes PNG, JPEG, WebP, TIFF and BMP itself and, in its own benchmark on full-page screenshots, runs about six times faster than pixelmatch; ",[153,568,569],{},"@blazediff\u002Fcore"," is a block-optimized JavaScript port.",[240,572,574],{"id":573},"who-uses-it","Who uses it",[245,576,577,627,636,642,655],{},[145,578,579,582,583,585,586,589,590,593,594,596,597,600,601,604,605,608,609,612,613,616,617,620,621,624,625,217],{},[148,580,581],{},"pixelmatch:"," Playwright (a vendored 2019 copy with the default ",[153,584,270],{}," raised to ",[153,587,588],{},"0.2","), jest-image-snapshot (",[153,591,592],{},"^5.1.0",", its own default ",[153,595,270],{}," is ",[153,598,599],{},"0.01","), ",[153,602,603],{},"@pixsame\u002Fcypress-plugin-visual-regression-diff"," (",[153,606,607],{},"7.2.0",", passing ",[153,610,611],{},"diffConfig"," straight through), Lost Pixel (",[153,614,615],{},"5.3.0",", called with ",[153,618,619],{},"threshold: 0","), Loki's default engine (",[153,622,623],{},"^5.2.0","), the old reg-cli engine, and Vitest browser mode through ",[153,626,569],{},[145,628,629,632,633,217],{},[148,630,631],{},"odiff:"," Argos, and Lost Pixel as the optional ",[153,634,635],{},"compareEngine: 'odiff'",[145,637,638,641],{},[148,639,640],{},"Resemble.js:"," BackstopJS.",[145,643,644,647,648,197,651,654],{},[148,645,646],{},"looks-same:"," testplane (the renamed hermione, with its own defaults ",[153,649,650],{},"tolerance: 3.0",[153,652,653],{},"antialiasingTolerance: 4",") and Loki's optional engine.",[145,656,657,660,661,287,664,666,667,670,671,674,675,678],{},[148,658,659],{},"A WebAssembly port of the YIQ comparison:"," reg-cli, where ",[153,662,663],{},"matchingThreshold",[153,665,216],{},") is the color tolerance, ",[153,668,669],{},"thresholdRate"," or ",[153,672,673],{},"thresholdPixel"," the maximum, and anti-aliasing detection stays off unless ",[153,676,677],{},"enableAntialias"," is set.",[134,680,682],{"id":681},"shift-tolerant-pixel-diffing","Shift-tolerant pixel diffing",[127,684,685,686,689,690,695,696,197,699,702,703,706,707,710,711,713,714,716,717,720,721,525,723,525,726,525,729,197,732,735,736,739,740,742,743,287,746,748],{},"A variation on the previous type that answers anti-aliasing and sub-pixel movement differently: a pixel matches if it matches ",[422,687,688],{},"any"," pixel within a small window of the other image. ",[130,691,694],{"href":692,"rel":693},"https:\u002F\u002Fgithub.com\u002Fyahoo\u002Fblink-diff",[257],"blink-diff"," (Yahoo, 2014, archived) introduced it as ",[153,697,698],{},"hShift",[153,700,701],{},"vShift"," (default 2), with a plain Euclidean RGBA ",[153,704,705],{},"delta"," (default 20) and an optional CIE Lab ",[153,708,709],{},"perceptual"," mode, and a threshold that was either a pixel count (default 500) or a percentage. The window absorbs shifted edges and most anti-aliasing at the price of missing one-pixel changes. Dropbox's differ offers the same ",[153,712,698],{},"\u002F",[153,715,701],{}," windows, which Roborazzi's README suggests increasing to work around anti-aliasing, and Paparazzi's default ",[153,718,719],{},"offbytwo"," differ is the same idea (a pixel may differ by a small amount), selectable next to ",[153,722,208],{},[153,724,725],{},"mssim",[153,727,728],{},"sift",[153,730,731],{},"flip",[153,733,734],{},"de2000"," with a ",[153,737,738],{},"maxPercentDifference"," limit (default ",[153,741,599],{},", in percent). Roborazzi's ",[153,744,745],{},"changeThreshold",[153,747,216],{},") fails the comparison when more than that fraction of the pixels differ.",[127,750,751],{},"blink-diff's three-panel composition (approved, diff, build) outlived it: jest-image-snapshot and Roborazzi still produce one. The pixelmatch README credits it and Resemble.js as inspiration.",[134,753,755],{"id":754},"structural-similarity","Structural similarity",[127,757,758,759,764,765,767,768,217],{},"The ",[130,760,763],{"href":761,"rel":762},"https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FStructural_similarity_index_measure",[257],"structural similarity index"," (SSIM, Wang et al., 2004) does not compare pixels at all. It slides a window (11×11 by default) over both images and, for each position, compares the local mean (luminance), the local variance (contrast) and the correlation (structure) of the two patches; the per-window scores form a map and their mean is the result, ",[153,766,204],{}," for identical images. It was designed to predict how humans rate image quality, which makes it good at what pixel counts are bad at: JPEG or WebP compression artifacts, slight blur, noise and sub-pixel shifts all leave the structure intact and score near ",[153,769,204],{},[127,771,772,777,778,781,782,785,786,789,790,793,794,796],{},[130,773,776],{"href":774,"rel":775},"https:\u002F\u002Fgithub.com\u002Fobartra\u002Fssim",[257],"ssim.js"," is the JavaScript implementation the tools use. It offers four algorithms: ",[153,779,780],{},"original"," (a line-by-line port of the reference MATLAB code), ",[153,783,784],{},"fast"," (mathematically equivalent, quicker), ",[153,787,788],{},"bezkrovny"," (downsamples first, close to but not identical with the original) and ",[153,791,792],{},"weber"," (the fastest, also approximate, and the library's current default). It returns ",[153,795,725],{},", the map and the time taken.",[127,798,799,252,802,807,808,287,811,814,815,817,818,820,821,824,825,828],{},[148,800,801],{},"In the tools.",[130,803,806],{"href":804,"rel":805},"https:\u002F\u002Fgithub.com\u002Famericanexpress\u002Fjest-image-snapshot",[257],"jest-image-snapshot"," exposes it as ",[153,809,810],{},"comparisonMethod: 'ssim'",[153,812,813],{},"'pixelmatch'","), with ",[153,816,788],{}," as its default algorithm and the advice to set a 1% threshold; its README describes fewer false positives and higher sensitivity to real changes as the benefit, and floating-point work that does not benefit from pixel-count fast paths as the cost. Paparazzi has an ",[153,819,725],{}," differ. Playwright's source contains an undocumented ",[153,822,823],{},"ssim-cie94"," comparator (a private ",[153,826,827],{},"_comparator"," option, not public API) that combines both types: a pixel passes if its CIE94 ΔE is at most 1, otherwise it is treated as anti-aliasing when the SSIM of a 31×31 window around it is at least 0.99, and counted as a difference otherwise.",[127,830,831,834,835,837],{},[148,832,833],{},"Where SSIM fails."," It is computed on luminance, so a change that keeps structure and only shifts color can score very high; Playwright's test fixtures include an \"SSIM trap\", a white image and a gray image that some color-weighted SSIM variants report as equal. A small change (a one-character typo) inside a large window is averaged away by everything around it that still matches, so a global ",[153,836,725],{}," of 0.999 can hide exactly the regression a text-heavy UI cares about. It localizes less sharply than a pixel diff, it is slower, and its score is not a count, so \"0.5% of the pixels may differ\" has no SSIM equivalent. The honest use is an image that is expected to differ in rendering details but not in content: charts, photos, canvases, scaled images.",[134,839,841],{"id":840},"perceptual-hashes","Perceptual hashes",[127,843,844,845,850,851,856],{},"A perceptual hash reduces the whole image to a short fingerprint. ",[130,846,849],{"href":847,"rel":848},"https:\u002F\u002Fwww.phash.org\u002Fdocs\u002Fdesign.html",[257],"pHash"," downscales to grayscale, takes a discrete cosine transform, keeps the low frequencies and encodes which are above the median into a 64-bit value; two images are compared by the Hamming distance between their hashes, the number of differing bits. ",[130,852,855],{"href":853,"rel":854},"https:\u002F\u002Fgithub.com\u002Fcommonsmachinery\u002Fblockhash-js",[257],"blockhash"," does the same with block mean values instead of a DCT. Both are robust to scaling, compression, small rotations and blur, which is what they were built for: finding copies and near-duplicates in large collections.",[127,858,859,860,863],{},"That robustness is exactly why they do not fit regression testing. A hash cannot say ",[422,861,862],{},"where"," the difference is, and a changed label, a missing icon or a wrong number in one table cell moves at most a bit or two, well inside the distance scaling noise also produces. They fit a coarse question (\"is this the same screenshot family, or did the page change completely?\"), de-duplication of baselines, or a cheap first pass before a real comparison. Among visual regression tools, VexFlow's test suite uses a pHash distance with a threshold to flag changed renderings; the mainstream web tools do not use hashing.",[134,865,867],{"id":866},"hosted-and-layout-aware-comparison","Hosted and layout-aware comparison",[127,869,870],{},"The services compare on their servers and document the knobs, not the code. Most of them run a tolerance-based pixel diff underneath and add what a library cannot: regions, layout modes and review workflows. What follows is what their public docs state.",[245,872,873,903,928,967],{},[145,874,875,878,879,882,883,886,887,890,891,894,895,898,899,902],{},[148,876,877],{},"Applitools"," exposes ",[422,880,881],{},"match levels",", the only widely used example of a type that is not about pixels. ",[148,884,885],{},"Exact"," is a pixel-to-pixel comparison the docs do not recommend for ordinary use. ",[148,888,889],{},"Strict",", the default, is described as a perceptual comparison and is most effective for regression tests on one browser and OS with mostly static content. ",[148,892,893],{},"Content"," (now ",[148,896,897],{},"Ignore Colors",") is Strict without color differences. ",[148,900,901],{},"Layout"," compares the structure and relative positioning of elements and is meant for dynamic content. The recommended practice is Strict globally with Layout or Ignore Colors regions where needed.",[145,904,905,908,909,271,911,913,914,917,918,525,921,197,924,927],{},[148,906,907],{},"Chromatic"," measures color difference in the YIQ color space between the same coordinates in both snapshots; ",[153,910,286],{},[153,912,290],{},") is the per-pixel tolerance, settable per project, component, story or test. It detects anti-aliased pixels and ignores them unless ",[153,915,916],{},"diffIncludeAntiAliasing: true",". ",[153,919,920],{},"pauseAnimationAtEnd",[153,922,923],{},"delay",[153,925,926],{},"cropToViewport"," control the capture, not the comparison.",[145,929,930,933,934,937,938,941,942,945,946,949,950,953,954,600,957,525,960,962,963,966],{},[148,931,932],{},"Percy"," documents capture options (",[153,935,936],{},"widths",", default 375 and 1280; ",[153,939,940],{},"minHeight",", default 1024; ",[153,943,944],{},"percyCSS","; ",[153,947,948],{},"enableJavaScript",") and region algorithms: ",[153,951,952],{},"standard"," (pixel-based, with strictness presets and a ",[153,955,956],{},"diffSensitivity",[153,958,959],{},"layout",[153,961,371],{},", and ",[153,964,965],{},"intelliignore"," for images, with a diff-sensitivity slider whose default is 20%. The underlying pixel algorithm is not described.",[145,968,969,972,973,976,977,980,981,271,983,986,987,989,990,992],{},[148,970,971],{},"Argos"," states that it runs odiff twice with anti-aliasing detection on: a tolerant pass (color threshold ",[153,974,975],{},"0.15",", discarded when fewer than 20 pixels or 0.02% of the image changed) and a color-sensitive pass (",[153,978,979],{},"0.0225",", counted only when at least 3% of the image changed); the higher score wins. Its ",[153,982,270],{},[153,984,985],{},"0.5",") scales those tolerances: ",[153,988,216],{}," is zero tolerance, ",[153,991,204],{}," doubles them.",[134,994,996],{"id":995},"the-types-side-by-side","The types side by side",[998,999,1000,1021],"table",{},[1001,1002,1003],"thead",{},[1004,1005,1006,1010,1013,1015,1018],"tr",{},[1007,1008,1009],"th",{},"Type",[1007,1011,1012],{},"Measures",[1007,1014,417],{},[1007,1016,1017],{},"Reports",[1007,1019,1020],{},"Examples",[1022,1023,1024,1043,1060,1077,1094,1113,1129,1146],"tbody",{},[1004,1025,1026,1029,1032,1035,1038],{},[1027,1028,885],"td",{},[1027,1030,1031],{},"any channel difference",[1027,1033,1034],{},"not handled; pin the renderer",[1027,1036,1037],{},"fraction or count of pixels",[1027,1039,1040,1041],{},"Flutter goldens, swift-snapshot-testing defaults, Paparazzi ",[153,1042,208],{},[1004,1044,1045,1048,1051,1054,1057],{},[1027,1046,1047],{},"Tolerance, weighted color (YIQ, OKLab)",[1027,1049,1050],{},"squared weighted distance as a fraction of black-white",[1027,1052,1053],{},"slope detector, on by default",[1027,1055,1056],{},"count of differing pixels",[1027,1058,1059],{},"pixelmatch, odiff, Chromatic, reg-cli, pixsame (pixelmatch 7.2.0)",[1004,1061,1062,1065,1068,1071,1074],{},[1027,1063,1064],{},"Tolerance, perceptual ΔE",[1027,1066,1067],{},"CIEDE2000 or CIE Lab ΔE",[1027,1069,1070],{},"slope detector (looks-same) or the tolerance itself (Swift)",[1027,1072,1073],{},"boolean with bounds and clusters, or pass\u002Ffail on matching fraction",[1027,1075,1076],{},"looks-same, swift-snapshot-testing",[1004,1078,1079,1082,1085,1088,1091],{},[1027,1080,1081],{},"Tolerance, per-channel RGB",[1027,1083,1084],{},"integer tolerance per channel plus brightness",[1027,1086,1087],{},"coarse neighbor rule, sampled on large images",[1027,1089,1090],{},"mismatch percentage, bounds, styled diff",[1027,1092,1093],{},"Resemble.js (BackstopJS)",[1004,1095,1096,1099,1102,1105,1108],{},[1027,1097,1098],{},"Shift-tolerant",[1027,1100,1101],{},"match within a small pixel window",[1027,1103,1104],{},"absorbed by the window",[1027,1106,1107],{},"pixel or percent threshold, composite image",[1027,1109,1110,1111],{},"blink-diff, Dropbox differ (Roborazzi), Paparazzi ",[153,1112,719],{},[1004,1114,1115,1118,1121,1123,1126],{},[1027,1116,1117],{},"Structural",[1027,1119,1120],{},"luminance, contrast and structure per window",[1027,1122,1104],{},[1027,1124,1125],{},"mean score 0 to 1 and a map",[1027,1127,1128],{},"ssim.js (jest-image-snapshot, Paparazzi)",[1004,1130,1131,1134,1137,1140,1143],{},[1027,1132,1133],{},"Perceptual hash",[1027,1135,1136],{},"DCT or block means of a downscaled grayscale",[1027,1138,1139],{},"not applicable",[1027,1141,1142],{},"Hamming distance, no location",[1027,1144,1145],{},"pHash, blockhash (VexFlow's tests)",[1004,1147,1148,1151,1154,1157,1160],{},[1027,1149,1150],{},"Layout-aware, hosted",[1027,1152,1153],{},"element structure, regions, match levels",[1027,1155,1156],{},"handled server side",[1027,1158,1159],{},"verdict in an app",[1027,1161,1162],{},"Applitools, Percy, Chromatic, Argos",[134,1164,1166],{"id":1165},"how-to-choose","How to choose",[127,1168,1169,1172,1173,1175],{},[148,1170,1171],{},"Text-heavy UIs."," Anti-aliasing detection is the feature that matters: without it, every letter edge is a candidate difference. The weighted-color family (pixelmatch, odiff, Chromatic) and looks-same have the slope detector; Resemble's rule is coarser; structural comparison dilutes a changed word inside its windows; exact comparison has none and relies on a pinned renderer. Pick a detector-equipped type ",[422,1174,424],{}," pin the renderer: the detector removes the pixels that sit on the slope, not the glyphs that were hinted differently.",[127,1177,1178,1181],{},[148,1179,1180],{},"Compression artifacts and resampled images."," Pixel comparisons see JPEG blocks and scaling noise as thousands of small differences, and raising the color tolerance hides a tint change along with them. Structural similarity is the right instrument here because the structure survives the artifact, and a perceptual ΔE tolerance is second best. Better still is to avoid the problem: screenshot as PNG, never scale before comparing.",[127,1183,1184,1187,1188,1190,1191,1194,1195,197,1198,217],{},[148,1185,1186],{},"Cross-browser and cross-OS."," No type solves this; rendering differences are real differences. What helps is a comparison that reports ",[422,1189,862],{}," (looks-same's clusters, odiff's diff lines, any diff image) so a reviewer can tell a hinting change from a layout change quickly, a layout-aware mode (Applitools' Layout level) when the question is \"did anything move\", and separate baselines per platform, which the ",[130,1192,1193],{"href":58},"manifest"," records as ",[153,1196,1197],{},"platform",[153,1199,1200],{},"renderer",[127,1202,1203,1206,1207,1210,1211,1213,1214,525,1217,1220,1221,525,1224,410],{},[148,1204,1205],{},"Why the two limits mean different things per type."," The color tolerance of the learn chapter is a fraction of the black-white distance in pixelmatch, a per-channel integer in Resemble, ΔE units in looks-same, ",[153,1208,1209],{},"1 − ΔE\u002F100"," in swift-snapshot-testing and an RGBA distance in differ; the same ",[153,1212,155],{}," is strict in one and meaningless in another. The maximum diff ratio exists only where the comparison counts: pixel types count pixels, Resemble reports a percentage, looks-same a boolean with clusters, structural comparison a similarity score, the services a verdict. That is why the manifest stores the tolerance together with the metric it belongs to (",[153,1215,1216],{},"comparison.colorMetric",[153,1218,1219],{},"comparison.colorThreshold",") and stores the ratio only where the writer knows it (",[153,1222,1223],{},"comparison.maxDiffRatio",[153,1225,1226],{},"comparison.diffRatio",[134,1228,1230],{"id":1229},"try-them-yourself","Try them yourself",[127,1232,758,1233,1238],{},[130,1234,1237],{"href":1235,"rel":1236},"https:\u002F\u002Fdiff.visual-regression.dev",[257],"online diff tool"," takes two images and compares them with several of these approaches side by side (exact, pixelmatch, Resemble.js, SSIM, perceptual hash), with their options exposed, so you can watch the same pair of screenshots pass one type and fail another before you commit to a tolerance.",[134,1240,1242],{"id":1241},"sources","Sources",[245,1244,1245,1267,1294,1319,1351,1363,1399,1415,1440,1450,1472,1489,1528,1553],{},[145,1246,1247,1248,525,1252,525,1257,525,1262],{},"pixelmatch: ",[130,1249,1251],{"href":255,"rel":1250},[257],"README",[130,1253,1256],{"href":1254,"rel":1255},"https:\u002F\u002Fgithub.com\u002Fmapbox\u002Fpixelmatch\u002Fblob\u002Fmain\u002Findex.js",[257],"current source",[130,1258,1261],{"href":1259,"rel":1260},"https:\u002F\u002Fgithub.com\u002Fmapbox\u002Fpixelmatch\u002Fblob\u002Fv7.1.0\u002Findex.js",[257],"v7.1.0 source",[130,1263,1266],{"href":1264,"rel":1265},"https:\u002F\u002Fgithub.com\u002Fmapbox\u002Fpixelmatch\u002Freleases",[257],"releases",[145,1268,1269,1270,525,1273,525,1280,525,1287],{},"odiff: ",[130,1271,1251],{"href":277,"rel":1272},[257],[130,1274,1277],{"href":1275,"rel":1276},"https:\u002F\u002Fgithub.com\u002FdmtrKovalenko\u002Fodiff\u002Fblob\u002Fmain\u002Fsrc\u002Fdiff.zig",[257],[153,1278,1279],{},"src\u002Fdiff.zig",[130,1281,1284],{"href":1282,"rel":1283},"https:\u002F\u002Fgithub.com\u002FdmtrKovalenko\u002Fodiff\u002Fblob\u002Fmain\u002Fsrc\u002Fantialiasing.zig",[257],[153,1285,1286],{},"src\u002Fantialiasing.zig",[130,1288,1291],{"href":1289,"rel":1290},"https:\u002F\u002Fgithub.com\u002FdmtrKovalenko\u002Fodiff\u002Fblob\u002Fmain\u002Fnpm_packages\u002Fodiff-bin\u002Fodiff.d.ts",[257],[153,1292,1293],{},"odiff.d.ts",[145,1295,1296,1297,525,1300,1307,1308,525,1312],{},"Resemble.js: ",[130,1298,1251],{"href":353,"rel":1299},[257],[130,1301,1304],{"href":1302,"rel":1303},"https:\u002F\u002Fgithub.com\u002Frsmbl\u002FResemble.js\u002Fblob\u002Fmaster\u002Fresemble.js",[257],[153,1305,1306],{},"resemble.js","; BackstopJS: ",[130,1309,1251],{"href":1310,"rel":1311},"https:\u002F\u002Fgithub.com\u002Fgarris\u002FBackstopJS",[257],[130,1313,1316],{"href":1314,"rel":1315},"https:\u002F\u002Fgithub.com\u002Fgarris\u002FBackstopJS\u002Fblob\u002Fmaster\u002Fpackage.json",[257],[153,1317,1318],{},"package.json",[145,1320,1321,1322,525,1325,525,1332,1339,1340,525,1346],{},"looks-same: ",[130,1323,1251],{"href":309,"rel":1324},[257],[130,1326,1329],{"href":1327,"rel":1328},"https:\u002F\u002Fgithub.com\u002Fgemini-testing\u002Flooks-same\u002Fblob\u002Fmaster\u002Findex.js",[257],[153,1330,1331],{},"index.js",[130,1333,1336],{"href":1334,"rel":1335},"https:\u002F\u002Fgithub.com\u002Fgemini-testing\u002Flooks-same\u002Fblob\u002Fmaster\u002Flib\u002Fconstants.js",[257],[153,1337,1338],{},"lib\u002Fconstants.js","; testplane: ",[130,1341,1344],{"href":1342,"rel":1343},"https:\u002F\u002Fgithub.com\u002Fgemini-testing\u002Ftestplane\u002Fblob\u002Fmaster\u002Fpackage.json",[257],[153,1345,1318],{},[130,1347,1350],{"href":1348,"rel":1349},"https:\u002F\u002Ftestplane.io\u002Fdocs\u002Fv8\u002Fconfig\u002Fbrowsers\u002F",[257],"browser config",[145,1352,1353,1354,525,1357],{},"blink-diff: ",[130,1355,1251],{"href":692,"rel":1356},[257],[130,1358,1361],{"href":1359,"rel":1360},"https:\u002F\u002Fgithub.com\u002Fyahoo\u002Fblink-diff\u002Fblob\u002Fmaster\u002Findex.js",[257],[153,1362,1331],{},[145,1364,1365,1366,197,1370,945,1375,1379,1380,525,1387,525,1394],{},"SSIM: ",[130,1367,1369],{"href":774,"rel":1368},[257],"ssim.js README",[130,1371,1374],{"href":1372,"rel":1373},"https:\u002F\u002Fgithub.com\u002Fobartra\u002Fssim\u002Fwiki\u002FUsage",[257],"usage wiki",[130,1376,1378],{"href":804,"rel":1377},[257],"jest-image-snapshot README","; Playwright ",[130,1381,1384],{"href":1382,"rel":1383},"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fplaywright\u002Fblob\u002Fmain\u002Fpackages\u002Futils\u002Fcomparators.ts",[257],[153,1385,1386],{},"comparators.ts",[130,1388,1391],{"href":1389,"rel":1390},"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fplaywright\u002Fblob\u002Fmain\u002Fpackages\u002Futils\u002Fimage_tools\u002Fcompare.ts",[257],[153,1392,1393],{},"image_tools\u002Fcompare.ts",[130,1395,1398],{"href":1396,"rel":1397},"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fplaywright\u002Fblob\u002Fmain\u002Ftests\u002Fimage_tools\u002Ffixtures\u002Fshould-fail\u002Fjulia-ssim-trap\u002FREADME.md",[257],"SSIM trap fixture",[145,1400,1401,1402,525,1406,525,1410],{},"Perceptual hashes: ",[130,1403,1405],{"href":847,"rel":1404},[257],"pHash design",[130,1407,1409],{"href":853,"rel":1408},[257],"blockhash-js",[130,1411,1414],{"href":1412,"rel":1413},"https:\u002F\u002Fgithub.com\u002F0xfe\u002Fvexflow\u002Fwiki\u002FVisual-Regression-Tests",[257],"VexFlow visual regression tests",[145,1416,1417,1418,525,1422,1429,1430,525,1433],{},"Roborazzi: ",[130,1419,1251],{"href":1420,"rel":1421},"https:\u002F\u002Fgithub.com\u002Ftakahirom\u002Froborazzi",[257],[130,1423,1426],{"href":1424,"rel":1425},"https:\u002F\u002Fgithub.com\u002Ftakahirom\u002Froborazzi\u002Fblob\u002Fmain\u002Finclude-build\u002Froborazzi-core\u002Fsrc\u002FcommonMain\u002Fkotlin\u002Fcom\u002Fgithub\u002Ftakahirom\u002Froborazzi\u002FRoborazziOptions.common.kt",[257],[153,1427,1428],{},"RoborazziOptions.common.kt","; Dropbox differ: ",[130,1431,1251],{"href":395,"rel":1432},[257],[130,1434,1437],{"href":1435,"rel":1436},"https:\u002F\u002Fgithub.com\u002Fdropbox\u002Fdiffer\u002Fblob\u002Fmain\u002Fdiffer\u002Fsrc\u002FcommonMain\u002Fkotlin\u002Fcom\u002Fdropbox\u002Fdiffer\u002FImageComparator.kt",[257],[153,1438,1439],{},"ImageComparator.kt",[145,1441,1442,1443],{},"swift-snapshot-testing: ",[130,1444,1447],{"href":1445,"rel":1446},"https:\u002F\u002Fgithub.com\u002Fpointfreeco\u002Fswift-snapshot-testing\u002Fblob\u002Fmain\u002FSources\u002FSnapshotTesting\u002FSnapshotting\u002FUIImage.swift",[257],[153,1448,1449],{},"Snapshotting\u002FUIImage.swift",[145,1451,1452,1453,525,1459,525,1465],{},"Flutter: ",[130,1454,1457],{"href":1455,"rel":1456},"https:\u002F\u002Fapi.flutter.dev\u002Fflutter\u002Fflutter_test\u002FmatchesGoldenFile.html",[257],[153,1458,184],{},[130,1460,1463],{"href":1461,"rel":1462},"https:\u002F\u002Fapi.flutter.dev\u002Fflutter\u002Fflutter_test\u002FLocalFileComparator-class.html",[257],[153,1464,188],{},[130,1466,1469],{"href":1467,"rel":1468},"https:\u002F\u002Fgithub.com\u002Fflutter\u002Fflutter\u002Fblob\u002Fmaster\u002Fpackages\u002Fflutter_test\u002Flib\u002Fsrc\u002F_goldens_io.dart",[257],[153,1470,1471],{},"_goldens_io.dart",[145,1473,1474,1475,525,1482],{},"Paparazzi: ",[130,1476,1479],{"href":1477,"rel":1478},"https:\u002F\u002Fgithub.com\u002Fcashapp\u002Fpaparazzi\u002Fblob\u002Fmaster\u002Fpaparazzi\u002Fsrc\u002Fmain\u002Fjava\u002Fapp\u002Fcash\u002Fpaparazzi\u002FSnapshotHandler.kt",[257],[153,1480,1481],{},"SnapshotHandler.kt",[130,1483,1486],{"href":1484,"rel":1485},"https:\u002F\u002Fgithub.com\u002Fcashapp\u002Fpaparazzi\u002Fblob\u002Fmaster\u002Fpaparazzi\u002Fsrc\u002Fmain\u002Fjava\u002Fapp\u002Fcash\u002Fpaparazzi\u002FDiffer.kt",[257],[153,1487,1488],{},"Differ.kt",[145,1490,1491,1492,1496,1497,525,1501,1506,1507,525,1512,525,1517,1522,1523],{},"Applitools: ",[130,1493,881],{"href":1494,"rel":1495},"https:\u002F\u002Fapplitools.com\u002Fdocs\u002Feyes\u002Fconcepts\u002Fbest-practices\u002Fmatch-levels",[257],"; Chromatic: ",[130,1498,270],{"href":1499,"rel":1500},"https:\u002F\u002Fwww.chromatic.com\u002Fdocs\u002Fthreshold\u002F",[257],[130,1502,1505],{"href":1503,"rel":1504},"https:\u002F\u002Fwww.chromatic.com\u002Fdocs\u002Fanimations\u002F",[257],"animations","; Percy: ",[130,1508,1511],{"href":1509,"rel":1510},"https:\u002F\u002Fwww.browserstack.com\u002Fdocs\u002Fpercy\u002Freferences\u002Fconfig-options",[257],"configuration",[130,1513,1516],{"href":1514,"rel":1515},"https:\u002F\u002Fwww.browserstack.com\u002Fdocs\u002Fpercy\u002Fvisual-testing-workflows\u002Fview-percy-build-results\u002Fintelli-ignore",[257],"Intelli Ignore",[130,1518,1521],{"href":1519,"rel":1520},"https:\u002F\u002Fwww.browserstack.com\u002Fdocs\u002Fpercy\u002Fset-regions\u002Fdefine-regions",[257],"regions","; Argos: ",[130,1524,1527],{"href":1525,"rel":1526},"https:\u002F\u002Fargos-ci.com\u002Fdocs\u002Fdiff-algorithm",[257],"diff algorithm",[145,1529,1530,1531,525,1536,1543,1544,1548,1549],{},"Lost Pixel: ",[130,1532,1535],{"href":1533,"rel":1534},"https:\u002F\u002Fdocs.lost-pixel.com\u002Fuser-docs\u002Frecipes\u002Fgeneral-recipes\u002Fthresholds",[257],"thresholds",[130,1537,1540],{"href":1538,"rel":1539},"https:\u002F\u002Fgithub.com\u002Flost-pixel\u002Flost-pixel\u002Fblob\u002Fmain\u002Fsrc\u002Fconfig.ts",[257],[153,1541,1542],{},"src\u002Fconfig.ts","; reg-cli: ",[130,1545,1251],{"href":1546,"rel":1547},"https:\u002F\u002Fgithub.com\u002Freg-viz\u002Freg-cli",[257],"; Loki: ",[130,1550,1511],{"href":1551,"rel":1552},"https:\u002F\u002Floki.js.org\u002Fconfiguration.html",[257],[145,1554,1555,1556,525,1561,1566,1567,525,1574,525,1579,1583,1584],{},"Playwright: ",[130,1557,1560],{"href":1558,"rel":1559},"https:\u002F\u002Fplaywright.dev\u002Fdocs\u002Ftest-snapshots",[257],"screenshot docs",[130,1562,1565],{"href":1563,"rel":1564},"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fplaywright\u002Fblob\u002Fmain\u002Fpackages\u002Futils\u002Fthird_party\u002Fpixelmatch.js",[257],"vendored pixelmatch","; Vitest: ",[130,1568,1571],{"href":1569,"rel":1570},"https:\u002F\u002Fvitest.dev\u002Fapi\u002Fbrowser\u002Fassertions#tomatchscreenshot",[257],[153,1572,1573],{},"toMatchScreenshot",[130,1575,1578],{"href":1576,"rel":1577},"https:\u002F\u002Fgithub.com\u002Fvitest-dev\u002Fvitest\u002Fblob\u002Fmain\u002Fpackages\u002Fbrowser\u002Fsrc\u002Fnode\u002Fcommands\u002FscreenshotMatcher\u002Fcomparators\u002Fpixelmatch.ts",[257],"comparator source",[130,1580,569],{"href":1581,"rel":1582},"https:\u002F\u002Fgithub.com\u002Fteimurjan\u002Fblazediff\u002Ftree\u002Fmain\u002Fpackages\u002Fcore",[257],"; pixsame: ",[130,1585,1588],{"href":1586,"rel":1587},"https:\u002F\u002Fgithub.com\u002Fpixsame\u002Fpixsame\u002Fblob\u002Fmain\u002Fpackages\u002Fcypress-plugin-visual-regression-diff\u002FREADME.md",[257],"plugin README",{"title":1590,"searchDepth":1591,"depth":1591,"links":1592},"",2,[1593,1594,1595,1603,1604,1605,1606,1607,1608,1609,1610],{"id":136,"depth":1591,"text":137},{"id":177,"depth":1591,"text":178},{"id":234,"depth":1591,"text":235,"children":1596},[1597,1599,1600,1601,1602],{"id":242,"depth":1598,"text":243},3,{"id":416,"depth":1598,"text":417},{"id":460,"depth":1598,"text":461},{"id":562,"depth":1598,"text":563},{"id":573,"depth":1598,"text":574},{"id":681,"depth":1591,"text":682},{"id":754,"depth":1591,"text":755},{"id":840,"depth":1591,"text":841},{"id":866,"depth":1591,"text":867},{"id":995,"depth":1591,"text":996},{"id":1165,"depth":1591,"text":1166},{"id":1229,"depth":1591,"text":1230},{"id":1241,"depth":1591,"text":1242},"Exact, tolerance-based, shift-tolerant, structural, hash-based and layout-aware comparison, what each type measures, what it ignores and what its numbers mean, with pixelmatch, odiff, Resemble.js, looks-same, SSIM and the hosted services as examples.","md",null,{},{"icon":43},{"title":48,"description":1611},"m_vLYjOw9JKO1-Ms07LZPbk7NQ6wlYnHPYK-UJon094",[1619,1621],{"title":36,"path":37,"stem":38,"description":1620,"icon":39,"children":-1},"Short answers to the questions that come up first about visual regression testing, baselines, flaky screenshots, and the run manifest and viewer.",{"title":52,"path":53,"stem":54,"description":1622,"icon":55,"children":-1},"Runner integrations, hosted review services and mobile tools, compared on facts from their own docs.",1795388678439]