browsershot
browsershot copied to clipboard
Better screenshot
helps to make a shot not so shitty
Thanks for the PR!
The resizeMode
makes complete sense. I am not that sure about sharpness
-- we probably want to have the image 100% similar to the original rendering. Supplying custom sharpness value might, in theory, result in applying an edge-detection operator (https://w3c.github.io/mediacapture-image/#sharpness), effectively creating a different (over-sharpened) image.
Is there any implementation of the sharpness
option available for reference?
Some rudimentary observations:
- Firefox (66.0.3, Linux) does 1:1 perfect shots
- Chrome (73.0.3683, Linux) does blurry shots, even with both options specified. The resulting canvas height is one pixel less than the window height, so probably some resampling is taking place.