wplace-screenshotter
v0.1.1
Published
Attempts to fetch a grid of tiles from wplace.live's backend and assemble them into a single PNG file.
Maintainers
Readme
wplace-screenshotter
A CLI tool to fetch a grid of tiles from wplace.live's backend and assemble them into a single PNG file.
Installation
Run the following command to install wpscreen as a command line tool.
npm i -g wplace-screenshotterUsage
The CLI accepts the following options:
-x, --from-x-y, --from-y(required) - The x and y indices of the top-left tile-w, --width-h, --height- Width and height of the tile grid to be downloaded. Defaults to1-c, --crop- Optional crop region of the resulting image, given byx/y/width/heightin pixels-o, --out-file- Where to save the resulting PNG image. Defaults to./wplace-out.png-u, --url-prefix- Base URL of the tiles endpoint. Defaults tohttps://backend.wplace.live/files/s0/tiles--help- Prints usage info
Fetching many tiles at once may result in your host being temporarily rate-limited so keep the width and height reasonable.
# example: Staten Island, NY
wpscreen -x601 -y770 -w2 -h2 -c 561/490/1180/1150 -o staten-island.png
# example: Tile 0,0 as wplace-out.png
wpscreen -x0 -y0