Exporting images#

Writing PNGs without a terminal, sized for the vision models that will read them. Export never overwrites a file; it numbers the name instead. --max-edge is the stable way to size an image; --vision-profile is only an alias for one.

OptionArgumentDefaultDescription
-o, --outputstringexport one input as PNG; ‘-’ writes PNG to stdout
-O, --output-dirstringexport each input as a numbered PNG in this directory
-s, --max-edgeint1536maximum exported image edge in pixels (1–4096)
--vision-profilestringalias for a –max-edge, which is stable where these go stale: claude-high, claude-standard, openai-high

Examples#

# One page, as a PNG
gloss --page 2 --output page2.png report.pdf

# Every page, into a folder
gloss --page all --output-dir pages report.pdf

# A contact sheet of a model's views, to a pipe
gloss --view front,top,iso --output - model.stl > sheet.png