You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0d21de3
Browse filesBrowse the repository at this point in the historyBrowse files
Reading a clipboard image on macOS went through AppleScript's
`the clipboard as "PNGf"` coercion, which passes the whole image through
an Apple event descriptor. That costs about 200ms per megabyte, so a 12MB
screenshot took 2.5s. Spawning osascript is only 40ms of it.
Read the pasteboard through the ObjC bridge in JXA instead. It returns
the bytes already on the pasteboard, so the cost no longer scales with
the size of the image.
Closesanomalyco#38879
0 commit comments