-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
send custom device-pixel-ratio? #38
Comments
I just took a quick look at the docs, and there's no obvious way to do this. The backing scale stuff happens at a pretty low level in WebKit and Cocoa - it's not just a case of supplying a scale factor when initializing the web view. That doesn't mean it's impossible, but it's not going to be easy, and I don't know when I'm going to get to it. If someone else can work out how to do it I'd love to merge their code though! |
Thats too bad it's so low-level because manipulating it would make it easier to capture retina screenshots on non-retina displays. On Thu, Apr 4, 2013 at 12:21 PM, Paul Hammond notifications@github.com
|
I saw that with phantomJS you simply do this CSS magic to get screenshots with retina resolution. Would this be an idea for webkit2png also? document.body.style.webkitTransform = "scale(2)";
document.body.style.webkitTransformOrigin = "0% 0%";
/* fix the body width that overflows out of the viewport */
document.body.style.width = "50%"; |
It would be nice to have an option to send a device-pixel-ratio other than 1 (to target retina-scale graphics on compatible sites).
The text was updated successfully, but these errors were encountered: