Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4583452
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T21:13:00+00:00 2026-05-21T21:13:00+00:00

When I try to take a screenshot of an element using webkit2png, if the

  • 0

When I try to take a screenshot of an element using webkit2png, if the element uses webkit-transform, often the screenshot will be blank.

This is for a research project, where I’m trying to take a thumbnail of google streetview so I can quickly scan which location I need to adjust. Note: We have a special ToS from google for this project (so please don’t flame me for breaking their public ToS).

This is the github of the webkit2png source: https://github.com/paulhammond/webkit2png/issues/?sort=created&direction=desc&_pjax=true&state=open

The issue is open.

Any ideas how to fix this?

I was using bitpixels.com but their service is lacking. This will be running on a server that I work on everyday, so the other option is to use PyQt4, but I have issues with that spawning an x11 instance every shot it needs to take. That won’t scale.

Currently I’m rebuilding and updated version of webkit, trying to write some code that will remove the transform, but I wonder if this will screw things up.

After that, I’m out of ideas.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T21:13:01+00:00Added an answer on May 21, 2026 at 9:13 pm

    Answer submitted on github by https://github.com/Wevah

    If you can drop support for OS X < 10.4, you can replace

    bitmapdata = AppKit.NSBitmapImageRep.alloc()
    bitmapdata.initWithFocusedViewRect_(view.bounds())
    view.unlockFocus()
    

    with

    bitmapdata = view.bitmapImageRepForCachingDisplayInRect_(view.bounds())
    view.cacheDisplayInRect_toBitmapImageRep_(view.bounds(), bitmapdata)
    

    This works, at least, with the URL posted in the original issue. Alternatively, you could wrap this stuff in respondsToSelector_(), but I don’t know how the Python/Cocoa stuff deals with weak linking issues.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Take this code into consideration: Proxy p = new Proxy(Type.SOCKS, new InetSocketAddress(proxyURL, port)); try
I am using Silverlight 3 and I am trying to take a screenshot of
I am using the following code to take a screenshot of a TableLayout. I
I am currently building this Android application, where I will be taking a screenshot
I'm trying to take a screenshot of my Android application using Robotium, I'm using
I want to take a screenshot of many webpages, I wrote this: from splinter.browser
I have this method that is supposed to take a screenshot and return the
I'm an trying to take a screenshot in the background using CutyCapt My application
So I'm trying to create a function that will essentially take a screenshot of
Take a look that the following code snippet: A a = null try {

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.