{"id":156,"date":"2008-04-01T18:59:17","date_gmt":"2008-04-02T02:59:17","guid":{"rendered":"http:\/\/jim-zimmerman.com\/blog\/?p=156"},"modified":"2008-04-01T19:05:58","modified_gmt":"2008-04-02T03:05:58","slug":"resizing-images-via-linux-command-line-or-script","status":"publish","type":"post","link":"https:\/\/jim-zimmerman.com\/?p=156","title":{"rendered":"Resizing images via linux command line or script."},"content":{"rendered":"<p>Make sure ImageMagick is installed.  The convert command is part of the ImageMagick installation.<\/p>\n<p>convert -geometry 240&#215;160 filename newfilename<\/p>\n<p>The following will resize several images in a script:<\/p>\n<p>#!\/bin\/bash<br \/>\nfor x in $(ls)<br \/>\ndo<br \/>\nconvert -geometry 240&#215;160 $x new-$x<br \/>\ndone<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Make sure ImageMagick is installed. The convert command is part of the ImageMagick installation. convert -geometry 240&#215;160 filename newfilename The following will resize several images in a script: #!\/bin\/bash for x in $(ls) do convert -geometry 240&#215;160 $x new-$x done<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-156","post","type-post","status-publish","format-standard","hentry","category-documentation"],"share_on_mastodon":{"url":"","error":""},"_links":{"self":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/156","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=156"}],"version-history":[{"count":0,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/156\/revisions"}],"wp:attachment":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=156"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=156"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=156"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}