SHANTY(1)
π SHANTY(1) β the Shanty manual, bestie edition π
okay so you found the SHANTY page in section 1 of the manual and you're like "what is this" β don't worry, I got you. Shanty is a lil tool that turns an image plus some text into a PostScript file, and it's lowkey iconic. Let's get into it. π¦
β¨ NAME β¨
Shanty β Makes a PostScript file from an image and some text. that's it, that's the vibe. π
πΈ SYNOPSIS πΈ
shanty -i image_file [-t text_file] [-o output_file] [-s paper_size] [-d
density] [-m margin] [-b background_color] [-x padding] [-n title] [-l
orientation] [-rtl] [-btt] [-f font_name] [-altgd]
π DESCRIPTION π
So here's the whole deal, bestie: Shanty takes a text file and an image (PNG or JPG, we love both) and creates a PostScript file where one pixel in the image becomes one character in the PostScript. yes fr fr, one pixel β one character. it's giving pixel art but make it typography. ππ₯
π OPTIONS π
-i,-imageβ Name of the image to load in. JPG and PNG images are supported. This is the only compulsory field, so likeβ¦ you literally cannot skip it. it's the main character. π-t,-textβ Name of the text file to load in, if omittedSTDINis used. so if you don't hand it a file it'll just slurp from stdin, no biggie. π-o,-outputβ Name of the PostScript file to produce, if omittedSTDOUTis used. yeah so no filename = it just yells the whole thing out to stdout. β¨-s,-sizeβ Size of the paper to work with. This field should be one of:"a0","a2","a3","a4","a5","a6","letter","broadsheet","ledger","tabloid","legal","executive"and"36x36". Default is"a4". (yes bestie,a1is not in the list. I don't make the rules, I just report them. π)-d,-densityβ Density of the text. Higher numbers are more dense, default is1.4. more number = more dense, that's the whole thing. π§-m,-marginβ The margins of the page in cm. Default is1. centimetres, bestie, not inches. keep up. π-b,-backgroundβ The colour of a backing rectangle to place behind the text. Colours are specified as"R,G,B"with each value between0and255."off"means no backing colour. Default is"off". so like a little rectangle glow-up behind your text, or nothing at all. π-x,-p,-paddingβ Density of the text. Higher numbers are more dense, default is1.4. (yes it says the same thing as-density, that's literally what's written, I'm not gonna gaslight you about it π)-n,-titleβ The title of the output to write as meta-data in the PostScript file. Default is"Shanty output". it's just metadata, but it's your metadata. π-l,-orientationβ The orientation of the paper, can be"portrait","landscape"or"auto". Default is"auto". let it decide, she's got this. πΈ-rtlβ Switch to right-to-left text. for the rtl girlies. π«Ά-bttβ Switch to bottom-to-top text. text but it's climbing the page. π-f,-fontβ Specify font. The font name specified must be visible to the not just make a font magically appear. Default is"Courier-Bold". so like, the font you name has to actually be there β you can't just speak a font into existence, bestie, that's not how it works. π-altgdβ If you have problems loading the GD library, try this switch. it's the "have you tried turning it off and on again" of switches. π₯
π HOMEPAGE π
<http://www.codebunny.org/coding/shanty/>
βοΈ AUTHOR βοΈ
Duncan Martin <duncan@codebunny.org>
π ACKNOWLEDGEMENTS π
Many thanks to DFB <http://www.cs.nott.ac.uk/~dfb/> and contributors to comp.lang.postscript.
okay that's the whole page, you ate that, go make some pixel-text PostScript art πβ¨
and a lil sign-off for the girlies who read to the end: this is Shanty, page SHANTY(1), dated 6 October 2006, written by Duncan Martin. mwah. ππ
π¦ where this page comes from
- debian bookworm: shanty 3-4.1 Β· BSD-3-Clause
- debian trixie: shanty 3-4.1 Β· BSD-3-Clause
- ubuntu jammy: shanty 3-4.1 Β· BSD-3-Clause
- ubuntu noble: shanty 3-4.1 Β· BSD-3-Clause
- ubuntu resolute: shanty 3-4.1build1 Β· BSD-3-Clause
- ubuntu stonking: shanty 3-4.2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms