{"id":90,"date":"2023-08-25T22:40:36","date_gmt":"2023-08-25T20:40:36","guid":{"rendered":"https:\/\/linux-bibel.at\/?p=90"},"modified":"2023-08-25T22:40:36","modified_gmt":"2023-08-25T20:40:36","slug":"catimg-bilder-am-terminal-unter-linux-anzeigen","status":"publish","type":"post","link":"https:\/\/linux-bibel.at\/index.php\/2023\/08\/25\/catimg-bilder-am-terminal-unter-linux-anzeigen\/","title":{"rendered":"Catimg &#8211; Bilder am Terminal unter Linux anzeigen"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Ich nehme jetzt einmal ein Beispiel &#8211; ich habe einen Server ohne grafischer Oberfl\u00e4che im Internet, verbinde mich mit diesem \u00fcber SSH. Am Terminal Bilder auf diesem Server anzuzeigen ist ohne Hilfe nicht m\u00f6glich &#8211; also das Bild herunterladen, um es lokal anzuzeigen? Wir sind Linux-User und denken nicht so umst\u00e4ndlich &#8211; es gibt die Software Catimg.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Catimg installieren<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Unter auf Debian basierenden Linux-Distributionen installieren Sie diese Software ganz einfach \u00fcber die Paket-Verwaltung durch das Paket &#8222;<strong>catimg<\/strong>&#8222;, alternativ finden Sie die Software auch auf&nbsp;<a href=\"https:\/\/github.com\/posva\/catimg\" target=\"_blank\" rel=\"noreferrer noopener\">GitHub<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Catimg nutzen<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Die Nutzung von Catimg ist sehr einfach, die einfachste Art ist es das Bild direkt anzugeben &#8211; ist es n\u00f6tig einfach den passenden Pfad zur Datei angeben:<\/p>\n\n\n\n<pre class=\"wp-block-code has-tertiary-background-color has-background\"><code>catimg Dateiname.jpg<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/08\/catimg.jpg\" rel=\"lightbox-0\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/08\/catimg-1024x576.jpg\" alt=\"\" class=\"wp-image-91\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/08\/catimg-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/08\/catimg-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/08\/catimg-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/08\/catimg-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/08\/catimg.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">In diesem Fall nutzt Catimg die volle Breite des Terminals, es wird aber nicht gr\u00f6\u00dfer angezeigt als das Bild tats\u00e4chlich ist. Die Aufl\u00f6sung l\u00e4sst sich mit der Option &#8222;<strong>-r Wert<\/strong>&#8220; anpassen &#8211; als Wert ist &#8222;<strong>1<\/strong>&#8220; (<em>niedrigere Aufl\u00f6sung<\/em>) und &#8222;<strong>2<\/strong>&#8220; (<em>h\u00f6here Aufl\u00f6sung<\/em>) m\u00f6glich:<\/p>\n\n\n\n<pre class=\"wp-block-code has-tertiary-background-color has-background\"><code>catimg -r 1 Dateiname.jpg\ncatimg -r 2 Dateiname.jpg<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/08\/catimg1.jpg\" rel=\"lightbox-1\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/08\/catimg1-1024x576.jpg\" alt=\"\" class=\"wp-image-92\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/08\/catimg1-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/08\/catimg1-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/08\/catimg1-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/08\/catimg1-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/08\/catimg1.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Um das Bild passend auf das Terminal skaliert anzuzeigen, nutzt man die Option &#8222;<strong>-w Wert<\/strong>&#8222;, als Wert geben Sie die Prozent des realen Bildes an, hier etwa 80 Prozent der realen Gr\u00f6\u00dfe:<\/p>\n\n\n\n<pre class=\"wp-block-code has-tertiary-background-color has-background\"><code>catimg -w 80 Dateiname.jpg<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/08\/catimg2.jpg\" rel=\"lightbox-2\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/08\/catimg2-1024x576.jpg\" alt=\"\" class=\"wp-image-93\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/08\/catimg2-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/08\/catimg2-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/08\/catimg2-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/08\/catimg2-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/08\/catimg2.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/08\/catimg.png\" rel=\"lightbox-3\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/08\/catimg-1024x576.png\" alt=\"\" class=\"wp-image-94\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/08\/catimg-1024x576.png 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/08\/catimg-300x169.png 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/08\/catimg-768x432.png 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/08\/catimg-1536x864.png 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/08\/catimg.png 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<div class=\"pld-like-dislike-wrap pld-custom\">\r\n    <div class=\"pld-like-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-like-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir\" data-post-id=\"90\" data-trigger-type=\"like\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Hoch.png\" alt=\"Gef\u00e4llt mir\" \/>\r\n            <\/a>\r\n    <span class=\"pld-like-count-wrap pld-count-wrap\">1    <\/span>\r\n<\/div><div class=\"pld-dislike-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-dislike-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir nicht\" data-post-id=\"90\" data-trigger-type=\"dislike\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Runter.png\" alt=\"Gef\u00e4llt mir nicht\" \/>\r\n            <\/a>\r\n    <span class=\"pld-dislike-count-wrap pld-count-wrap\"><\/span>\r\n<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Ich nehme jetzt einmal ein Beispiel &#8211; ich habe einen Server ohne grafischer Oberfl\u00e4che im Internet, verbinde mich mit diesem \u00fcber SSH. Am Terminal Bilder auf diesem Server anzuzeigen ist ohne Hilfe nicht m\u00f6glich &#8211; also das Bild herunterladen, um es lokal anzuzeigen? Wir sind Linux-User und denken nicht so umst\u00e4ndlich &#8211; es gibt die [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":91,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[12,5,7,6],"class_list":["post-90","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-terminal","tag-kommandozeile","tag-linux","tag-shell","tag-terminal"],"_links":{"self":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/90","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/comments?post=90"}],"version-history":[{"count":1,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/90\/revisions"}],"predecessor-version":[{"id":95,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/90\/revisions\/95"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media\/91"}],"wp:attachment":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media?parent=90"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/categories?post=90"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/tags?post=90"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}