Chrome extension screenshot partial image cropping for Retina Display
问题 I made a chrome extension, which captures a single element (div) of a website. I used chrome.tabs > captureVisibleTab to make a screenshot. Then, with the coordinates (x/y) and sizes (width/height) of the element (div) I crop the screenshot. This works fine for me on non-retina displays. But not so on a Macbook with Retina display. For example, on www.247activemedia.com, we want to capture the header div with the logo (id="header"). On non-retina result is: On a Macbook with Retina display: