schomery / easy-screenshot

Easy Screenshot is an easy-to-use visual part, the entire page, or a selective screen capturing tool.
https://webextension.org/listing/screenshot.html
Mozilla Public License 2.0
24 stars 14 forks source link

Capture Entire Screen failes on zoomed page #11

Open Francewhoa opened 2 years ago

Francewhoa commented 2 years ago

Steps to reproduce

  1. Using Firefox, go to https://www.debian.org
  2. Still using Firefox, do a 160% zoom on this page.
  3. Using Easy Screenshot version 0.3.7, do a Capture Entire Screen
  4. The screenshot is missing parts. Somehow, within the screenshot there are overlaps. This is the challenge. In this screenshot below, the orange arrows show an example of missing parts.
  5. The needed end result is a complete Capture Entire Screen at 160% without missing parts. For example this:

Temporary Workaround

To temporarily resolved this challenge, use Firefox, temporarily change the zoom from 160% to 100%. Try again. This time Capture Entire Screen successfully take the screenshot without overlap.

This screenshot shows this temporary workaround end result

Cause

This is a speculation about what caused this challenge. Maybe somehow, Easy Screenshot is not yet aware of the present page zoom status? In other words, the Easy Screenshot Capture Entire Screen use a 100% zoom page for its width and height to try to capture a page display at 160%. In turn, the capture is missing parts. In other words, Easy Screenshot is successful at taking a screenshot of all the parts at 160%. But then somehow Easy Screenshot merged all those parts into a canvas at 100%? Thus, the merged parts are automatically overlapped. To fit within a canvas at 100%.

Related information "Note that if the page size is bigger than your window size and the "Capture Entire Screen" option is selected, the extension needs to scroll the entire page to capture different parts and merge these parts to generate a single image from the entire page. Also, note that the resolution of the taken image depends on the screen resolution. For instance, if you have a 4K display (like Retina displays), the image resolution is at least four times better than a normal display." Source at https://addons.mozilla.org/en-US/firefox/addon/web-clipper-easy-screenshot/

Contribution

Any volunteer for a patch? Both me and the Ubertus team would be happy to contribute testing and documentation, if needed.