rowan-lewis/abduction — Issue #18: Take into account the current Zoom
Author: PandaWood
Created: 2012-01-25 02:22:59+00:00
State: open

Hi,
I was wondering, how easy it would be to take into account the zoom of the page.

Currently, if you zoom in & save, it doesn't save exactly how it looked "zoomed in". It just uses the coordinates you highlighted, then logically takes the rendering of the browser as it would be "without zoom" and saves it.

I'm sure it would be debatable whether you should save a "larger" image with the exact rendering as the browser is showing (ie zoomed in).

But I've actually come here from using a different technology (C#) where the author of a "GeckoFX browser control" has given your plugin URL as his inspiration for his technical implementation. He puts in comments at the top of the page "Use of the canvas technique was inspired by: the abduction! firefox plugin by Rowan Lewis"

Now, what he wrote, also ignores the zoom state, in a way which is probably much more obviously "wrong".
Where we have a Windows dialog, user zooms in, we take a screenshot using the "canvas technique" and it's not actually what the user was looking at.

So I was wondering if you have any insight or comment at all, as to how this would be done, even in principal, using what you've done.
For example, would you consider it possible to save the image as shown exactly, taking into account the zoom, given the plugin you have & what's available to it.