{"id":926,"date":"2013-07-15T12:27:02","date_gmt":"2013-07-15T11:27:02","guid":{"rendered":"http:\/\/www.aymericlamboley.fr\/blog\/?p=926"},"modified":"2013-10-14T15:25:49","modified_gmt":"2013-10-14T14:25:49","slug":"resize-icons-for-mobile-apps","status":"publish","type":"post","link":"http:\/\/www.aymericlamboley.fr\/blog\/resize-icons-for-mobile-apps\/","title":{"rendered":"Resize icons for mobile apps"},"content":{"rendered":"<p>There are things which take times, they could easily be automated but there aren&#8217;t. One of this task is to generate all the icons for a mobile application. You have to resize the same image into 10 different sizes, for Android and iOS (29, 36, 48, 50, 57, 58, 72, 100, 114, 512, 1024).<\/p>\n<p>Why Apple doesn&#8217;t only require an image size of 1024 and automatically generate the smaller picture when the app is exported for the publication? There may be a good reason for that. Anyway, <a href=\"https:\/\/github.com\/alamboley\/IconsCreator\" target=\"_blank\">go to this Github<\/a> and grab the php script to generate app icons for Android &#038; iOS in all requested resolutions.<\/p>\n<p>Now the quick dev story: at first, I thought it was a good small project to get back into some ruby dev. I didn&#8217;t practice it since several years ago. So I started with <a href=\"https:\/\/github.com\/PrimaryFeather\/Sparrow-Framework\/tree\/master\/sparrow\/util\" target=\"_blank\">Sparrow&#8217;s samples<\/a>, but quickly I went into library &#038; version nightmare, and I wasn&#8217;t able to remember a single line of ruby! So I get back to php very quickly and discover that we may use it with a <a href=\"http:\/\/en.wikipedia.org\/wiki\/Command-line_interface\" target=\"_blank\">CLI<\/a> (why couldn&#8217;t we?). It&#8217;s very quick &#038; powerful, be ready for some script for renaming \ud83d\ude00<\/p>\n<p><strong>Edit:<\/strong><br \/>\nFind some scripts for renaming files and delete others one based on a string name: <a href=\"https:\/\/github.com\/alamboley\/AssetsOperations\" target=\"_blank\">https:\/\/github.com\/alamboley\/AssetsOperations<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are things which take times, they could easily be automated but there aren&#8217;t. One of this task is to generate all the icons for a mobile application. You have to resize the same image into 10 different sizes, for Android and iOS (29, 36, 48, 50, 57, 58, 72, 100, 114, 512, 1024). Why &hellip; <a href=\"http:\/\/www.aymericlamboley.fr\/blog\/resize-icons-for-mobile-apps\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Resize icons for mobile apps<\/span> <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":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[166,44],"tags":[],"_links":{"self":[{"href":"http:\/\/www.aymericlamboley.fr\/blog\/wp-json\/wp\/v2\/posts\/926"}],"collection":[{"href":"http:\/\/www.aymericlamboley.fr\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.aymericlamboley.fr\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.aymericlamboley.fr\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.aymericlamboley.fr\/blog\/wp-json\/wp\/v2\/comments?post=926"}],"version-history":[{"count":5,"href":"http:\/\/www.aymericlamboley.fr\/blog\/wp-json\/wp\/v2\/posts\/926\/revisions"}],"predecessor-version":[{"id":985,"href":"http:\/\/www.aymericlamboley.fr\/blog\/wp-json\/wp\/v2\/posts\/926\/revisions\/985"}],"wp:attachment":[{"href":"http:\/\/www.aymericlamboley.fr\/blog\/wp-json\/wp\/v2\/media?parent=926"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.aymericlamboley.fr\/blog\/wp-json\/wp\/v2\/categories?post=926"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.aymericlamboley.fr\/blog\/wp-json\/wp\/v2\/tags?post=926"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}