{"id":508,"date":"2020-04-27T04:10:19","date_gmt":"2020-04-26T16:10:19","guid":{"rendered":"http:\/\/wp.gaborhargitai.hu\/?p=508"},"modified":"2020-04-27T04:10:35","modified_gmt":"2020-04-26T16:10:35","slug":"mac-batch-resize-images-in-macos-terminal","status":"publish","type":"post","link":"https:\/\/wp.gaborhargitai.hu\/mac-batch-resize-images-in-macos-terminal\/","title":{"rendered":"Mac Batch Resize Images in macOS Terminal"},"content":{"rendered":"\n
We can use the built-in sips<\/strong> command to resize all files in a folder while keeping the aspect ratio intact.<\/p>\n\n\n\n To resize all JPG files<\/strong> in the current folder<\/strong>, while maintaining aspect ratio<\/strong> and not letting either the height <\/strong>or width <\/strong>go above 1600 pixels<\/strong>, issue the following:<\/p>\n\n\n\n We can use the built-in sips command to resize all files in a folder while keeping the aspect ratio intact. To resize all JPG files in the current folder, while maintaining aspect ratio and not letting either the height or width go above 1600 pixels, issue the following:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[17],"tags":[],"_links":{"self":[{"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/posts\/508"}],"collection":[{"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/comments?post=508"}],"version-history":[{"count":1,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/posts\/508\/revisions"}],"predecessor-version":[{"id":509,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/posts\/508\/revisions\/509"}],"wp:attachment":[{"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/media?parent=508"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/categories?post=508"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/tags?post=508"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}sips -Z 1600 *.jpg<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"