Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMPROVEMENT] - Ignoring linespaces and comparing only text and styling changes #217

Open
svccsotest10 opened this issue Feb 17, 2022 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@svccsotest10
Copy link

svccsotest10 commented Feb 17, 2022

I wanted to compare only text and styling changes between images. How can i ignore linespaces while comparing?

Background:

I am comparing two webpages. Both webpages are of same source just deployed on two environments - env1 and env2.

Now env1 renders page with little whitespace of two lines from top while env2 renders without it. I have automated the process and of taking screenshot of webpages and then using image-comparison to compare the images from 2 env's

@svccsotest10 svccsotest10 added the enhancement New feature or request label Feb 17, 2022
@svccsotest10
Copy link
Author

svccsotest10 commented Feb 17, 2022

slide-1_ppt2

slide-1_ppt2

slide-1_ppt1

slide-1_ppt1

Adding both the images.

slide-1_ppt1 has a linespace on top while slide-1_ppt2 does not. As a result I am getting whole content highlighted.

Result of comparison
result-1

How to ignore the linespace?

@svccsotest10 svccsotest10 changed the title [IMPROVEMENT] - Ignoring whitespaces and comparing only text and styling changes [IMPROVEMENT] - Ignoring linespaces and comparing only text and styling changes Feb 17, 2022
@scp-WFZ
Copy link

scp-WFZ commented Apr 20, 2022

@romankh3 Hi, I'd like to work on the issue.

@Cheese-Bar
Copy link
Contributor

How about allowing the user to select to remove a single background for comparison. I mean, if the background has the same pixel, we can chose to ignore them and just compare the remaining part.

Cheese-Bar added a commit to Cheese-Bar/image-comparison that referenced this issue Apr 24, 2022
…son, which provide an enhancement to compare two pictures while ignore there position in the same pure bacground. Three different test cases are added to confirm it's correctness. The related issue is romankh3#217
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants