This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(async () => { | |
const api = game.modules.get("plutonium").api; | |
const ipt = [ | |
["Bounty Hunter", "M"], // Replace this table | |
["NAME", "SIZE_ABV"] | |
]; | |
for (const [name, size] of ipt) { | |
const {dimensions = 1, scale = 1} = api.util.tokens.getTokenDimensionsAndScale(size); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/python3 | |
# This script requires pdfimage, pdftoppm (poppler-utils), convert (imagemagick), and alive_bar (alive-progress) | |
# If your pdf file contains jp2 images, you can either (un)comment lines 84 & 85 for a significant performance hit, or you can also install opj_decompress (libopenjp2-tools) | |
# Example usage: python3 pdf-extract-images.py "Players Handbook.pdf" "PHB" | |
# Raw images will be written to <OUTPUT_DIR>/15-organized | |
# Attempts at merging masks and images will be output in webp to <OUTPUT_DIR/30-masked> | |
# Images without corresponding masks will be written in webp to <OUTPUT_DIR>/40-standalone |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"_meta": { | |
"sources": [ | |
{ | |
"json": "GHMG", | |
"abbreviation": "GHMG", | |
"full": "Grim Hollow: The Monster Grimoire", | |
"authors": [ | |
"Ghostfire Gaming", | |
"Shawn Merwin" |