xcfinfo(1)
πΈ NAME πΈ
xcfinfo β displays info about GIMP xcf files, periodt π
β¨ SYNOPSIS β¨
xcfinfo [ options ] filename
π¦ DESCRIPTION π¦
okay so bestie, xcfinfo is literally a command-line tool that spills the tea about what's inside image files in the XCF format β you know, the one gimp(1) uses π¨ β and it's especially obsessed with telling you about the layers in the image. like, that's its whole main character energy.
π OPTIONS π
-h,--helpβ prints an option summary to standard output and then exits with a return code of0. cute and simple π«Ά-j,--bzipβ same thing as-Z bzcat. it's the default when the filename ends withbz2β¨-u,--utf8β uses the raw UTF-8 representation straight from the XCF file when comparing and displaying layer names. normally those layer names get converted to the character set of your current locale, so this is for when you want the unfiltered version, no cap π-v,--verboseβ prints progress messages about the conversion to standard error. like a little running commentary π£οΈ-V,--versionβ prints the version number of xcftools to standard output and exits with a return code of0π-z,--gzipβ same thing as-Z zcat. default when the filename ends withgzπ-Z command,--unpack commandβ you give it a command that the input file gets filtered through before it's interpreted as an XCF file. the command is invoked ascommand filenameand it must produce output on its standard output. heads up though β it is not possible to specify arguments as part of command π. an uncompressor gets picked automatically if the filename ends withgzorbz2, and if you wanna suppress that, use-Z cat(which is implemented without actually starting acat(1)process, sneaky β¨)
π₯ OUTPUT π₯
information about the image goes to standard output in a fixed format. the very first line is the general tea about the XCF file:
- the file format version
- the canvas size
- the image mode (color, grayscale, or indexed)
- the number of layers
- the internal compression algorithm
after that first line, you get one line per layer, and each one has:
- the character
+if the layer is visible, and-if it's not π - the size and offset of the layer
- the pixel format of the layer, including whether or not the layer has an alpha channel
- the layer mode, plus the opacity if it's not 100%, plus
/maskif the layer has an active layer mask - the name of the layer π
π EXIT STATUS π
the exit status of xcfinfo is:
0β success π20β problems parsing the command line π¬21β the specified XCF file does not exist or cannot be read π123β the XCF file contains presumably valid features that xcftools does not support. (as of this writing there is no known way of getting the Gimp to write an XCF file that will provoke this return. please notify the author if you discover one π)125β the XCF file is malformed π126β an uncompression program could not be executed, or terminated abnormally π΅127β unexpected I/O error, internal errors, or other "this can't happen" situations π
also! if an uncompression program returns an error exit status, that will be returned from xcfinfo too. fr fr.
π§ AUTHOR π§
xcfinfo was written by Henning Makholm <henning@makholm.net> π«Ά
β SEE ALSO β
xcf2pnm(1), xcf2png(1) β go check 'em out bestie, iykyk π
and that's the whole thing! brought to you by Xcftools, dated 2006-02-12 β slay, iconic, no notes πΈπ
π¦ where this page comes from
- nixos 26.05: xcftools 1.0.7
- nixpkgs unstable: xcftools 1.0.7
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms