{"id":3781,"date":"2015-09-26T15:19:19","date_gmt":"2015-09-26T20:19:19","guid":{"rendered":"http:\/\/hoolihan.net\/blog-tim\/?p=3781"},"modified":"2015-09-26T15:19:19","modified_gmt":"2015-09-26T20:19:19","slug":"resizing-images-in-bulk","status":"publish","type":"post","link":"http:\/\/hoolihan.net\/blog-tim\/2015\/09\/26\/resizing-images-in-bulk\/","title":{"rendered":"Resizing Images in Bulk"},"content":{"rendered":"<p>I help maintain a site for a craft business. One of the challenges is multiple sizes of images for new stock each year. I used to go through and resize each image manually with a program like <a href=\"http:\/\/www.gimp.org\/\">Gimp<\/a>. <\/p>\n<p>I finally got smart and installed <a href=\"http:\/\/www.imagemagick.org\/\">ImageMagick<\/a>.<\/p>\n<p>With a Rakefile, I can pass each image into the convert command with the proper sizing, and get the output into a new folder, ready for upload. The code is shown here:<\/p>\n<script src=\"https:\/\/gist.github.com\/1478e1a9d4c3ce73598b.js\"><\/script>\n<p>One catch to keep in mind if you work on a Mac. There can be orientation metadata from some images that OS X will honor, but a browser will not. If your images show up on the web in the wrong orientation, look into ImageMagick convert command&#8217;s -rotate option.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I help maintain a site for a craft business. One of the challenges is multiple sizes of images for new stock each year. I used to go through and resize each image manually with a program like Gimp. I finally got smart and installed ImageMagick. With a Rakefile, I can pass each image into the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,24],"tags":[283,285,284],"class_list":["post-3781","post","type-post","status-publish","format-standard","hentry","category-ruby","category-web","tag-imagemagick","tag-jpg","tag-rakefile"],"_links":{"self":[{"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/posts\/3781","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/comments?post=3781"}],"version-history":[{"count":0,"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/posts\/3781\/revisions"}],"wp:attachment":[{"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/media?parent=3781"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/categories?post=3781"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/tags?post=3781"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}