{"id":29,"date":"2012-10-09T20:25:44","date_gmt":"2012-10-09T18:25:44","guid":{"rendered":"http:\/\/blog.matthias.roehser.de\/?p=29"},"modified":"2014-07-05T15:51:27","modified_gmt":"2014-07-05T13:51:27","slug":"imagemagick-for-batch-processing-of-images","status":"publish","type":"post","link":"https:\/\/blog.matthias.roehser.de\/?p=29","title":{"rendered":"Imagemagick for batch processing of images"},"content":{"rendered":"<p>Imagemagick can apply a number of different filters at a time. In combination with the linux pipes it is possible to batch process a huge number of images.<\/p>\n<p>The command below takes all images in the &#8220;data&#8221; directory and does the following steps:<\/p>\n<ul>\n<li>Resize to 400&#215;300 pixels<\/li>\n<li>Transform to gray color<\/li>\n<li>Apply a sepia effect to give the image an &#8220;old&#8221; style<\/li>\n<li>Change (brightness,saturation,hue) from (100,100,100) to (100.35,100)<\/li>\n<\/ul>\n<p>ls data\/ | xargs -I {} convert data\/{} -resize 400&#215;300 -colorspace gray -sepia-tone 81% -modulate 100,35,100 -quality 60 {}.jpg<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Imagemagick can apply a number of different filters at a time. In combination with the linux pipes it is possible to batch process a huge number of images. The command below takes all images in the &#8220;data&#8221; directory and does the following steps: Resize to 400&#215;300 pixels Transform to gray color Apply a sepia effect [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-29","post","type-post","status-publish","format-standard","hentry","category-useful-tools"],"_links":{"self":[{"href":"https:\/\/blog.matthias.roehser.de\/index.php?rest_route=\/wp\/v2\/posts\/29","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.matthias.roehser.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.matthias.roehser.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.matthias.roehser.de\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.matthias.roehser.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=29"}],"version-history":[{"count":5,"href":"https:\/\/blog.matthias.roehser.de\/index.php?rest_route=\/wp\/v2\/posts\/29\/revisions"}],"predecessor-version":[{"id":124,"href":"https:\/\/blog.matthias.roehser.de\/index.php?rest_route=\/wp\/v2\/posts\/29\/revisions\/124"}],"wp:attachment":[{"href":"https:\/\/blog.matthias.roehser.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=29"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.matthias.roehser.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=29"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.matthias.roehser.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=29"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}