{"repo":"gemini-testing/looks-same","free":true,"listed":false,"github":"https://github.com/gemini-testing/looks-same","clone":"git clone https://github.com/gemini-testing/looks-same.git","description":"Node.js library for comparing images","language":"JavaScript","stars":827,"topics":["nodejs","testplane","image-comparisons"],"license":"MIT","category":"dev-tools","readme_excerpt":"LooksSame Pure node.js library for comparing png images, taking into account human color perception. It is created specially for the needs of visual regression testing for testplane utility, but can be used for other purposes. Benchmark Benchmark is presented in the corresponding directory. - Benchmark description - Benchmark results Comparing images Parameters can be paths to files or buffer with compressed image. By default, it will detect only noticeable differences. If you wish to detect any difference, use strict options: You can also adjust the ΔE value that will be treated as error in non-strict mode: Default tolerance in non-strict mode is 2.3 which is enough for the most cases. Setting tolerance to 0 will produce the same result as strict: true , but strict mode is faster. Attempt to set tolerance in strict mode will produce an error. Some devices can have different proportion between physical and logical screen resolutions also known as pixel ratio . Default value for this proportion is 1. This param also affects the comparison result, so it can be set manually with pixelRatio option. Comparing images with ignoring caret Text caret in text input elements it is a pain for visual regression tasks, because it is always blinks. These diffs will be ignored by default. You can use ignoreCaret option with false value to disable ignoring such diffs. In that way text caret will be marked as diffs. Both strict and ignoreCaret can be set independently of one another. Comparing","default_branch":null,"files":null,"tree":[],"storefront":"/r/gemini-testing","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/gemini-testing/looks-same/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}