gtk4-image-tool(1)
π gtk4-image-tool β the Image Utility bestie π
okay so real talk: this is the GTK commands corner of your terminal, and gtk4-image-tool is literally your little image-handling bestie. she does stuff to images. a lot of stuff. let's get into it π«Ά
β¨ SYNOPSIS β¨
gtk4-image-tool <COMMAND> [OPTIONS...] <FILE>...
gtk4-image-tool compare [OPTIONS...] <FILE1> <FILE2>
gtk4-image-tool convert [OPTIONS...] <FILE1> <FILE2>
gtk4-image-tool info [OPTIONS...] <FILE>
gtk4-image-tool relabel [OPTIONS...] <FILE1> <FILE2>
gtk4-image-tool show [OPTIONS...] <FILE>...
gtk4-image-tool play [OPTIONS...] <FILE>...
πΈ DESCRIPTION πΈ
gtk4-image-tool can perform various operations on images. that's the whole vibe. multiple operations. on images. she's versatile like that π
π COMMANDS π
π Information
the info command shows general information about the image, such as its format and color state. it's giving "tell me everything about yourself, no filter" π
πΌοΈ Showing
the show command displays one or more images, side-by-side. girlies lined up in a row, iconic.
--undecoratedβ Removes window decorations. This is meant for rendering of exactly the image without any titlebar. no chrome, no titlebar, just pure image main character energy β¨
π¬ Playing
the play command plays one or more SVG animations, side-by-side. Clicking on the animation will change the state of the GtkSvg paintable, where applicable. yes bestie, you can click on them and they react. interactive fr fr π¦
--undecoratedβ Removes window decorations. This is meant for rendering of exactly the animation without any titlebar. again, no titlebar, just vibes.--size=SIZEβ Show the animation at the given size. pick your size, queen.--no-animationsβ Disable animation playback. sometimes we need stillness, periodt.--no-system-resourcesβ Disable the use of system fonts. Embedded fonts will still be used. so the fonts baked into the file? still there. the system ones? not invited.--no-external-resourcesβ Disable loading of external resources such as images. Embedded images and images that included as resources in the application are still used.--no-extensionsβ Disable gpa extensions, such as states, transitions and dynamic stroke weight. turning off the fancy extras, lowkey a simpler era.
βοΈ Compare
the compare command compares two images. If any differences are found, the exit code is 1. If the images are identical, it is 0. so the exit code is literally telling you "same" or "not same" β vibe check in number form π
--output=FILEβ Save the differences as a png image inFILE. so you can literally see what's different. receipts.--quietβ Don't write results to stdout. shhh. silent mode. no commentary, just answers π
π¨ Conversion
the convert command converts the image to a different format or color state. The format of the output file is determined from the filename extension. so yes, the extension matters, it's not just decoration bestie π
--format=FORMATβ Convert to the given format. The supported formats can be listed with--format=list. go get the list, it's right there.--color-state=COLORSTATEβ Convert to the given color state. The supported color states can be listed with--format=list. yes, same--format=listtrick for the color states too, iykyk.--cicp=CICPβ Convert to a color state that is specified as a cicp tuple. The cicp tuple must be specified as four numbers, separated by/, e.g.1/13/6/0. four numbers, slashes between them, exactly like that.
π·οΈ Relabeling
the relabel command changes the color state of an image without conversion. The format of the output file is determined from the filename extension. note the difference from convert β this one does not convert, she just relabels.
This can be useful to produce wrong color renderings for diagnostics. yes bestie, deliberately wrong colors, on purpose, for science π₯
--color-state=COLORSTATEβ Relabel to the given color state. The supported color states can be listed with--format=list.--cicp=CICPβ Relabel to a color state that is specified as a cicp tuple. The cicp tuple must be specified as four numbers, separated by/, e.g.1/13/6/0.
heads up bestie:--cicpwants four numbers separated by/, like1/13/6/0. not three, not five. four. don't come for me, that's just what it says π
and that's the whole page, no cap. this one's brought to you by GTK β source and version GTK, page gtk4-image-tool(1), and the manual itself is dated the same as the file you're reading. go forth and manipulate some images, you absolute icon πβ¨π
π¦ where this page comes from
- fedora 44: gtk4-devel-tools 4.22.1-2.fc44 Β· LGPL-2.0-or-later AND LGPL-2.1-or-later AND Apache-2.0 AND CC0-1.0 AND MIT AND MIT-open-group AND HPND-sell-variant AND GPL-2.0-or-later AND GPL-3.0-or-later AND OFL-1.1
- fedora 44: gtk4-devel-tools 4.22.5-2.fc44 Β· LGPL-2.0-or-later AND LGPL-2.1-or-later AND Apache-2.0 AND CC0-1.0 AND MIT AND MIT-open-group AND HPND-sell-variant AND GPL-2.0-or-later AND GPL-3.0-or-later AND OFL-1.1
- ubuntu resolute: libgtk-4-bin 4.22.2+ds-1ubuntu1 Β· LGPL-2.0-or-later AND LGPL-2.1-or-later AND sun-permissive AND lcs-telegraphics-permissive AND X11R5-permissive AND MIT AND BSD-3-clause-Google AND Apache-2.0 AND CC0-1.0 AND ZPL-2.1
- ubuntu resolute: libgtk-4-bin 4.22.4+ds-0ubuntu0.1 Β· LGPL-2.0-or-later AND LGPL-2.1-or-later AND sun-permissive AND lcs-telegraphics-permissive AND X11R5-permissive AND MIT AND BSD-3-clause-Google AND Apache-2.0 AND CC0-1.0 AND ZPL-2.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms