XPSTOJPEG(1)

πŸ’– xpstojpeg(1) β€” the XPS to JPEG glow-up πŸ’–

okay so real talk, bestie: you're looking at a page from XPS Tools, and its whole personality is xpstojpeg β€” the little icon that turns your XPS docs into JPEGs. no cap, that's the entire arc. ✨


🌈 SYNOPSIS 🌈

xpstojpeg [OPTION...] FILE [OUTPUT FILE]

πŸ¦‹ DESCRIPTION πŸ¦‹

so xpstojpeg converts XPS documents into JPEG format, and it's giving very "i do one thing and i do it well" energy. πŸ’…

here's the vibe: it reads the XPS file you hand it, FILE, and then it writes one JPEG file per page β€” with the page number and the file type appended to OUTPUT FILE. so yeah, you don't get one big file, you get a whole lil squad of them. πŸŽ€

and if you don't specify OUTPUT FILE at all? no stress, it just uses "page" as the base name. iconic default behaviour tbh. 🫢


✨ OPTIONS ✨

  • -?, --help β€” shows the help options, aka the "tell me everything" button. 🧚
  • -d DOCUMENT, --document=DOCUMENT β€” picks which document inside the XPS file you actually want converted. there can be more than one in there (document in a document, we love a nested moment 😭). by default it takes the first document of the XPS file.
  • -f PAGE, --first=PAGE β€” the first page to convert. set the starting line πŸ’€
  • -l PAGE, --last=PAGE β€” the last page to convert. and that's the range, bestie.
  • -o, --odd β€” convert only odd pages. one, three, five, the whole odd little crew. πŸ”₯
  • -e, --even β€” convert only even pages. two, four, six, you get it. πŸ’œ
  • -r RESOLUTION, --resolution=RESOLUTION β€” horizontal and vertical resolution in PPI (Pixels Per Inch), both at once. the default is 150 PPI.
  • --rx=RESOLUTION β€” horizontal resolution in PPI (Pixels Per Inch), just the x side. the default is 150 PPI.
  • --ry=RESOLUTION β€” vertical resolution in PPI (Pixels Per Inch), just the y side. the default is 150 PPI.
  • -x X, --crop-x=X β€” the x-coordinate of the crop area's top left corner.
  • -y Y, --crop-y=Y β€” the y-coordinate of the crop area's top left corner.
  • -w WIDTH, --crop-width=WIDTH β€” the width of the crop area.
  • -h HEIGHT, --crop-height=HEIGHT β€” the height of the crop area.
⚠️ quick vibe check, because this one gets people every time: -h here is crop height, not help. if you want help, it's -?. do not come for me, i don't make the rules, i just report them πŸ™ˆ

πŸ’€ BUGS πŸ’€

found something cursed? please send those bug reports to:

https://bugzilla.gnome.org/enter_bug.cgi?product=libgxps

they want to hear it, fr fr. πŸ“


🌸 SEE ALSO 🌸

(the whole sibling squad β€” go say hi πŸ’–)


and that's the whole page, bestie! this little masterpiece is from XPS Tools, dated 10/12/2023, and it ate, no crumbs. go convert something pretty πŸ’…βœ¨πŸ¦‹