{"id":2972,"date":"2016-04-25T17:17:22","date_gmt":"2016-04-25T16:17:22","guid":{"rendered":"https:\/\/stevepedwards.today\/DebianAdmin\/?p=2972"},"modified":"2023-10-28T21:37:25","modified_gmt":"2023-10-28T20:37:25","slug":"cool-command-10-mogrify","status":"publish","type":"post","link":"https:\/\/stevepedwards.today\/DebianAdmin\/cool-command-10-mogrify\/","title":{"rendered":"Cool Command #10 &#8211; mogrify"},"content":{"rendered":"<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_2972\" class=\"pvc_stats all  \" data-element-id=\"2972\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n<p><span style=\"color: #0000ff;\">sudo mogrify -resize 25% *.JPG<\/span><\/p>\n<p>As I write these and motorcycle Posts for this site that often require fone pics to be uploaded to WordPress, I needed a way to reduce default Sony Arc S 5MP shots of up to\u00a01MB size to a smaller upload size, for which I used MS Paint for years.<\/p>\n<p>Now I am completely Windows free, I had to find an App that could do this without having the hassle of GIMP just for this one task - especially not to have to edit each pic individually as I did with MS Paint.<\/p>\n<p>Mogrify fulfils this need perfectly and is part of the ImageMagick suite:<\/p>\n<p><span style=\"color: #0000ff;\">apt-get install imagemagick<\/span><\/p>\n<p><span style=\"color: #0000ff;\">man mogrify\u00a0 \u00a0\u00a0<\/span><\/p>\n<p><span style=\"color: #ff0000;\">mogrify(1) General Commands Manual mogrify(1)<\/span><\/p>\n<p><span style=\"color: #ff0000;\">NAME<\/span><br \/>\n<span style=\"color: #ff0000;\"> mogrify - resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sam<\/span><br \/>\n<span style=\"color: #ff0000;\"> ple, and much more. Mogrify overwrites the original image file, whereas, convert(1)<\/span><br \/>\n<span style=\"color: #ff0000;\"> writes to a different image file.<\/span><\/p>\n<p><span style=\"color: #ff0000;\">SYNOPSIS<\/span><br \/>\n<span style=\"color: #ff0000;\"> mogrify [options] input-file<\/span><\/p>\n<p><span style=\"color: #ff0000;\">OVERVIEW<\/span><br \/>\n<span style=\"color: #ff0000;\"> The mogrify program is a member of the ImageMagick(1) suite of tools. Use it to resize<\/span><br \/>\n<span style=\"color: #ff0000;\"> an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more.<\/span><br \/>\n<span style=\"color: #ff0000;\"> This tool is similar to convert(1) except the original image file is overwritten with<\/span><br \/>\n<span style=\"color: #ff0000;\"> any changes you request.<\/span><\/p>\n<p><span style=\"color: #0000ff;\">mogrify -resize 25% *.jpg<\/span><\/p>\n<p>Within seconds it reduces the copied 100Andro default folder content from my fone to 25% original size as you watch:<\/p>\n<p><a href=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2016\/04\/mog.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-2973\" src=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2016\/04\/mog.png\" alt=\"mog.png\" width=\"874\" height=\"566\" \/><\/a><\/p>\n<p>Now they are much quicker to upload to Post, and for you viewers to DL from the site pages.<\/p>\n<p>You can explore the other switches mentioned in the man page overview if you have any other edit requirements.<\/p>\n<p>This makes reviewing photos and writing Posts SO much quicker, as they also view quicker in the default Gnome Image Viewer for checking with the left\/right keys, then deleting unwanted pics for Post planning before uploading using Shift+Del:<\/p>\n<p><a href=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2016\/04\/OilLight.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-2976\" src=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2016\/04\/OilLight.png\" alt=\"OilLight.png\" width=\"835\" height=\"679\" \/><\/a><\/p>\n<p><a href=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2016\/04\/SHdel.png\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-2978 aligncenter\" src=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2016\/04\/SHdel.png\" alt=\"SHdel.png\" width=\"646\" height=\"362\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_2972\" class=\"pvc_stats all  \" data-element-id=\"2972\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n<p>sudo mogrify -resize 25% *.JPG As I write these and motorcycle Posts for this site that often require fone pics to be uploaded to WordPress, I needed a way to reduce default Sony Arc S 5MP shots of up to\u00a01MB size to a smaller upload size, for which I used MS Paint for years. Now <a href=\"https:\/\/stevepedwards.today\/DebianAdmin\/cool-command-10-mogrify\/\" class=\"more-link\">...<span class=\"screen-reader-text\">\u00a0 Cool Command #10 &#8211; mogrify<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-2972","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"a3_pvc":{"activated":true,"total_views":1,"today_views":0},"_links":{"self":[{"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/posts\/2972","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/comments?post=2972"}],"version-history":[{"count":1,"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/posts\/2972\/revisions"}],"predecessor-version":[{"id":10036,"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/posts\/2972\/revisions\/10036"}],"wp:attachment":[{"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/media?parent=2972"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/categories?post=2972"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/tags?post=2972"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}