Gist 34581
✓ Published0🌍 Public
CCaged
Last edited Dec 11, 2008
Created on Dec 11, 2008
Darkroom is a Ruby script that captures full-page screenshots of websites. It loads a specified URL into an off-screen WebKit view, waits for the page to finish loading, and then saves the rendered content as a PNG file. The code leverages the OSX Cocoa and Webkit frameworks to create and control the browser view, and it uses `NSBitmapImageRep` to capture and encode the final image. The tool accepts command-line options to set the output filename and dimensions.
AI-generated description