{"id":1742,"date":"2017-02-11T10:33:50","date_gmt":"2017-02-11T10:33:50","guid":{"rendered":"http:\/\/slave27.local\/kb\/?p=1742"},"modified":"2017-02-11T10:33:50","modified_gmt":"2017-02-11T10:33:50","slug":"bulk-image-manipulation","status":"publish","type":"post","link":"https:\/\/andy.teknostatik.co.uk\/kb\/2017\/02\/11\/bulk-image-manipulation\/","title":{"rendered":"Bulk image manipulation"},"content":{"rendered":"<h3>Resizing<\/h3>\n<p>Navigate to the directory containing the images (via the terminal) and then enter the following command:<\/p>\n<pre><code>mogrify -resize 20x20 *.png\n<\/code><\/pre>\n<p>Which will resize all PNG files to 20\u00d720 pixels.<\/p>\n<p>This can obviously be altered to cater for different sizes and file types.<\/p>\n<h3>Conversion<\/h3>\n<p>The command to convert a whole folder of images from .bmp to .jpg is:<\/p>\n<pre><code>mogrify -format jpg *.bmp\n<\/code><\/pre>\n<h3>Imagemagick for Windows<\/h3>\n<ul>\n<li>http:\/\/www.imagemagick.org\/script\/download.php<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Resizing Navigate to the directory containing the images (via the terminal) and then enter the following command: mogrify -resize 20&#215;20 *.png Which will resize all PNG files to 20\u00d720 pixels. This can obviously be altered to cater for different sizes and file types. Conversion The command to convert a whole folder of images from .bmp &#8230; <a title=\"Bulk image manipulation\" class=\"read-more\" href=\"https:\/\/andy.teknostatik.co.uk\/kb\/2017\/02\/11\/bulk-image-manipulation\/\" aria-label=\"Read more about Bulk image manipulation\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":"","_share_on_mastodon":"0"},"categories":[5,6,10],"tags":[],"class_list":["post-1742","post","type-post","status-publish","format-standard","hentry","category-linux","category-mac-os-x","category-windows"],"share_on_mastodon":{"url":"","error":""},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/andy.teknostatik.co.uk\/kb\/wp-json\/wp\/v2\/posts\/1742","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/andy.teknostatik.co.uk\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/andy.teknostatik.co.uk\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/andy.teknostatik.co.uk\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/andy.teknostatik.co.uk\/kb\/wp-json\/wp\/v2\/comments?post=1742"}],"version-history":[{"count":0,"href":"https:\/\/andy.teknostatik.co.uk\/kb\/wp-json\/wp\/v2\/posts\/1742\/revisions"}],"wp:attachment":[{"href":"https:\/\/andy.teknostatik.co.uk\/kb\/wp-json\/wp\/v2\/media?parent=1742"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/andy.teknostatik.co.uk\/kb\/wp-json\/wp\/v2\/categories?post=1742"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/andy.teknostatik.co.uk\/kb\/wp-json\/wp\/v2\/tags?post=1742"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}