OPENSLIDE-WRITE-PNG(1)
π OPENSLIDE-WRITE-PNG π
okay bestie, welcome to the openslide-write-png page β it's a User Command from the OpenSlide fam, and it's literally here to grab a lil chunk of a virtual slide and spit it out as a PNG. so cute, so useful, let's get into it β¨
πΈ NAME πΈ
openslide-write-png β write a region of a virtual slide to a PNG π
π¦ SYNOPSIS π¦
openslide-write-png [--help] [--version] slide-file x y level width height output-file
like, that's the whole vibe. one command, seven-ish little args, no drama π
β¨ DESCRIPTION β¨
So here's the tea: this command writes a region of the specified level of a virtual slide out to a PNG image. no cap, that's the entire job. π«Ά
Quick vocab check on the coordinates, because the levels thing trips people up:
xandyare pixel coordinates in level 0 β that's the highest-resolution slide level, the big one, the main character πwidthandheightare pixel dimensions in the specified level (not level 0!) β so they get measured at whichever level you asked for π§
not me knowing that the level 0 / specified-level switcheroo is exactly where everyone messes up π
And if you're sitting there like "bestie, how do I even know how big each level is??" β the dimensions of each level of a slide can be obtained with openslide-show-properties(1). go peek, it'll tell you π
π OPTIONS π
--helpβ display usage summary. short, sweet, does what it says π--versionβ display version and copyright information. the receipts, basically π
π₯ EXIT STATUS π₯
openslide-write-png returns:
0on success β slay, it worked π1if an error occurred β something went sideways π2if the arguments are invalid β the args said "no" π
π NOTES π
okay important heads-up, listen up:
openslide-write-png is a legacy command and no new features will be added. periodt. it's iconic, it's still here, but it's not getting any glow-ups π
Its replacement is the region read subcommand of slidetool(1). so if you're starting fresh, that's your girl β¨
β COPYRIGHT β
Copyright Β© 2007-2023 Carnegie Mellon University and others
OpenSlide is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License, version 2.1 β¨http://gnu.org/licenses/lgpl-2.1.htmlβ©.
OpenSlide comes with NO WARRANTY, to the extent permitted by law. See the GNU Lesser General Public License for more details.
π SEE ALSO π
and that's the whole page, bestie!! mwah π this was OpenSlide 4.0.0, dated 2023-06-30 β go forth and PNG-ify some slides, you've got this π¦β¨
π¦ where this page comes from
- epel 10: openslide-tools 4.0.0-8.el10_3 Β· LGPL-2.1-only
- fedora 43: openslide-tools 4.0.0-10.fc43 Β· LGPL-2.1-only
- fedora 43: openslide-tools 4.0.0-14.fc43 Β· LGPL-2.1-only
- fedora 44: openslide-tools 4.0.0-13.fc44 Β· LGPL-2.1-only
- fedora 44: openslide-tools 4.0.0-14.fc44 Β· LGPL-2.1-only
- Copyright (c) 2007-2012 Carnegie Mellon University
- Copyright (c) 2023 Benjamin Gilbert
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms