jquery - Disable -webkit-transform for webkit2png -


when try take screenshot of element using webkit2png, if element uses webkit-transform, screenshot blank.

this research project, i'm trying take thumbnail of google streetview can scan location need adjust. note: have special tos google project (so please don't flame me breaking public tos).

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

the issue open.

any ideas how fix this?

i using bitpixels.com service lacking. running on server work on everyday, other option use pyqt4, have issues spawning x11 instance every shot needs take. won't scale.

currently i'm rebuilding , updated version of webkit, trying write code remove transform, wonder if screw things up.

after that, i'm out of ideas.

answer submitted on github https://github.com/wevah

if can drop support os x < 10.4, 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, @ least, url posted in original issue. alternatively, wrap stuff in respondstoselector_(), don't know how python/cocoa stuff deals weak linking issues.


Comments