{"id":43,"date":"2015-05-22T12:27:26","date_gmt":"2015-05-22T19:27:26","guid":{"rendered":"http:\/\/blog.aviate.org\/techblog\/?p=43"},"modified":"2015-05-22T12:28:00","modified_gmt":"2015-05-22T19:28:00","slug":"imagemagick-convert-for-many-files","status":"publish","type":"post","link":"https:\/\/blog.aviate.org\/mikeblog\/2015\/05\/22\/imagemagick-convert-for-many-files\/","title":{"rendered":"ImageMagick convert for many files"},"content":{"rendered":"<p>Have a slew of files you need to convert from one format to another? I capture a lot of screenshots from WW2OL, and they&#8217;re all saved as large BMPs by default. So I went looking for a quick and dirty way to convert them all to JPG. ImageMagick comes with _convert_, which makes it easy going from one format to another, but with almost 300, that meant a big loop with name substitutions, etc., etc.<\/p>\n<p>In my search I came across\u00a0<em>parallel<\/em>\u00a0from Gnu, and gave it a shot:<\/p>\n<pre><code>parallel convert '{} {.}.png' ::: *.jpg<\/code><\/pre>\n<p>This was all I needed to do the job. It broke the task down to worker processes and zipped through it in no time flat! Add this one to your unix toolbox!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Have a slew of files you need to convert from one format to another? I capture a lot of screenshots from WW2OL, and they&#8217;re all saved as large BMPs by default. So I went looking for a quick and dirty &hellip; <a href=\"https:\/\/blog.aviate.org\/mikeblog\/2015\/05\/22\/imagemagick-convert-for-many-files\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-43","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.aviate.org\/mikeblog\/wp-json\/wp\/v2\/posts\/43","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.aviate.org\/mikeblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.aviate.org\/mikeblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.aviate.org\/mikeblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.aviate.org\/mikeblog\/wp-json\/wp\/v2\/comments?post=43"}],"version-history":[{"count":2,"href":"https:\/\/blog.aviate.org\/mikeblog\/wp-json\/wp\/v2\/posts\/43\/revisions"}],"predecessor-version":[{"id":45,"href":"https:\/\/blog.aviate.org\/mikeblog\/wp-json\/wp\/v2\/posts\/43\/revisions\/45"}],"wp:attachment":[{"href":"https:\/\/blog.aviate.org\/mikeblog\/wp-json\/wp\/v2\/media?parent=43"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.aviate.org\/mikeblog\/wp-json\/wp\/v2\/categories?post=43"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.aviate.org\/mikeblog\/wp-json\/wp\/v2\/tags?post=43"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}