autowebcompat icon indicating copy to clipboard operation
autowebcompat copied to clipboard

Inconsistent sizes of screenshots with each other of chrome and firefox

Open sagarvijaygupta opened this issue 7 years ago • 4 comments

For images which have different sizes: https://gitlab.com/marco-c/autowebcompat-data/blob/master/1022_firefox.png https://gitlab.com/marco-c/autowebcompat-data/blob/master/1022_chrome.png

File "label.py", line 50, in get_new_image img_blended = Image.blend(background, overlay, 0.5) File "/home/sagar/anaconda3/envs/autowebcompat/lib/python3.6/site-packages/PIL/Image.py", line 2390, in blend return im1._new(core.blend(im1.im, im2.im, alpha)) ValueError: images do not match

Overlaying produces the above error.

sagarvijaygupta avatar Mar 18 '18 12:03 sagarvijaygupta

@marco-c do you think inconsistent sizes overall are because of how the crawler interacts with the browser?

Shashi456 avatar Mar 18 '18 14:03 Shashi456

I'm not sure what the exact cause is.

marco-c avatar Mar 18 '18 17:03 marco-c

There are 143 such types of inconsistencies. Should we just remove them? And put a check in collect.py so that next time no such screenshots are stored until we get the exact reason for this problem. Or just put a check in label.py?

sagarvijaygupta avatar Mar 19 '18 07:03 sagarvijaygupta

No, I'd prefer to keep them. Some of them might be valid after cropping (#115).

marco-c avatar Mar 19 '18 10:03 marco-c