{"id":6644,"date":"2026-07-26T17:25:26","date_gmt":"2026-07-26T15:25:26","guid":{"rendered":"https:\/\/www.hanshafner.de\/blog\/?p=6644"},"modified":"2026-07-26T17:25:26","modified_gmt":"2026-07-26T15:25:26","slug":"quick-resize-image-in-debian","status":"publish","type":"post","link":"https:\/\/www.hanshafner.de\/blog\/2026\/07\/26\/quick-resize-image-in-debian\/","title":{"rendered":"Quick resize image in Debian"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">On macOS it is so convenient to just right-click an image in the Finder and change its size right there.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This is how you can setup a similar behavior in Linux.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You need install imagemagick, I&#8217;m using Debian so I installed it like this:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>sudo apt install imagemagick<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then create the following script:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>nano ~\/.local\/share\/nautilus\/scripts\/resize_800x600.sh<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">and put the following code in there:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#!\/bin\/bash\nfor file in \"$@\"; do\n    convert \"$file\" -resize 800x600 \"${file%.*}_small.${file##*.}\"\ndone\nnotify-send \"Image Resizer\" \"Resize complete!\"\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The restart Nautilus with this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nautilus -q\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">That&#8217;s it. Now you can very quickly resize images right in the Files.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>On macOS it is so convenient to just right-click an image in the Finder and change its size right there. This is how you can setup a similar behavior in Linux. You need install imagemagick, I&#8217;m using Debian so I installed it like this: sudo apt install imagemagick Then create the following script: nano ~\/.local\/share\/nautilus\/scripts\/resize_800x600.sh [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,233],"tags":[215],"class_list":["post-6644","post","type-post","status-publish","format-standard","hentry","category-blog-2","category-tools","tag-linux"],"_links":{"self":[{"href":"https:\/\/www.hanshafner.de\/blog\/wp-json\/wp\/v2\/posts\/6644","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hanshafner.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hanshafner.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hanshafner.de\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hanshafner.de\/blog\/wp-json\/wp\/v2\/comments?post=6644"}],"version-history":[{"count":3,"href":"https:\/\/www.hanshafner.de\/blog\/wp-json\/wp\/v2\/posts\/6644\/revisions"}],"predecessor-version":[{"id":6647,"href":"https:\/\/www.hanshafner.de\/blog\/wp-json\/wp\/v2\/posts\/6644\/revisions\/6647"}],"wp:attachment":[{"href":"https:\/\/www.hanshafner.de\/blog\/wp-json\/wp\/v2\/media?parent=6644"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hanshafner.de\/blog\/wp-json\/wp\/v2\/categories?post=6644"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hanshafner.de\/blog\/wp-json\/wp\/v2\/tags?post=6644"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}