{"id":533,"date":"2012-01-05T00:14:40","date_gmt":"2012-01-04T23:14:40","guid":{"rendered":"http:\/\/blog.stephaniewalter.fr\/?p=533"},"modified":"2023-04-01T18:03:04","modified_gmt":"2023-04-01T16:03:04","slug":"android-script-photoshop-pour-exporter-en-ldpi-hdpi-et-xhdpi","status":"publish","type":"post","link":"https:\/\/stephaniewalter.design\/fr\/blog\/android-script-photoshop-pour-exporter-en-ldpi-hdpi-et-xhdpi\/","title":{"rendered":"Android script Photoshop pour exporter en ldpi, hdpi et xhdpi."},"content":{"rendered":"
Ce contenu a \u00e9t\u00e9 r\u00e9dig\u00e9 il y a 13 ans. Il se peut qu'il ne soit plus \u00e0 jour.<\/div>

[UPDATE] Ces actions sont d\u00e9pass\u00e9es,\u00a0 une mise \u00e0 jours de l’article avec un export directe depuis Photoshop est disponible ici : Photoshop: export to mdpi hdpi xhdpi xxhdpi and xxxhdpi for Android assets<\/span><\/a>\u00ab\u00a0<\/span><\/p>\n

En g\u00e9n\u00e9ral quand je cr\u00e9e une application, je pars du mdpi, du coup, pour suivre les guidelines android<\/a>, il faut re-cr\u00e9er tous les drawables en ldpi, hdpi et xhdpi. C’est assez long et fastidieux.\u00a0 Il existe des outils en ligne qui vous permettent de g\u00e9n\u00e9rer les diff\u00e9rentes tailles \u00e0 partir de png comme Asset studio<\/a>, cependant si on leur fourni la version mdi, la xhdpi (le double) risque de finir pixelis\u00e9e.
\nJ’ai donc cr\u00e9\u00e9 un\u00a0 set de petits scripts photoshop (action en anglais) qui automatise la transformation.<\/p>\n

\"android<\/a>
\nCes scripts partent du postulat que la version de base est mdpi, pour convertir les drawables. Ils sont bas\u00e9s sur ces ratios :<\/p>\n

\"AndroidIls peuvent donc non seulement \u00eatre utilis\u00e9s pour les ic\u00f4nes, mais pour n’importe quel autre drawable plus ou moins conventionnel.
\nLes trois premiers scripts sont \u00e0 utiliser s\u00e9par\u00e9ment, le dernier script rassemble les trois dimensions.
\nNotez que pour \u00e9viter une pixellisation au redimensionnement, il vaut mieux travailler avec des calques vectoriels et \u00e9viter au maximum d’utiliser des calques pixelis\u00e9s pour \u00e9viter les d\u00e9formations en xhdpi.<\/p>\n

Mode d’emploi du script:<\/h2>\n
    \n
  1. t\u00e9l\u00e9chargez le script, et installez le (glisser d\u00e9poser dans l’onglet \u00ab\u00a0actions\u00a0\u00bb ou \u00ab\u00a0scripts\u00a0\u00bb selon votre langue) dans photoshop<\/li>\n
  2. Cr\u00e9ez vos dossiers\u00a0 :
    \nres\/drawable-ldpi\/\u2026
    \nres\/drawable-mdpi\/\u2026
    \nres\/drawable-hdpi\/\u2026
    \nres\/drawable-xhdpi\/\u2026<\/li>\n
  3. Lancez votre script.<\/li>\n
  4. A la fin du redimensionnement, le script enregistre le fichier au format PNG24 pour le web, et va vous demander le nom du fichier. C’est l\u00e0 que vous devrez choisir le bon dossier.<\/li>\n
  5. Le dernier script rassemble les trois redimensionnements dans l’ordre suivant : ldpi, hdpi, xhdpi et demande \u00e0 chaque export l’endroit et le nom du fichier \u00e0 enregistrer.<\/li>\n<\/ol>\n

    \"script<\/a><\/p>\n

    Vous pouvez t\u00e9l\u00e9charger le script ci dessous, n’h\u00e9sitez pas si vous avez des questions sur l’utilisation des scripts.<\/p>\n

    [UPDATE] Ces actions sont d\u00e9pass\u00e9es,\u00a0 une mise \u00e0 jours de l’article avec un export directe depuis Photoshop est disponible ici : Photoshop: export to mdpi hdpi xhdpi xxhdpi and xxxhdpi for Android assets<\/span><\/a>\u00ab\u00a0<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"

    Ce contenu a \u00e9t\u00e9 r\u00e9dig\u00e9 il y a 13 ans. Il se peut qu’il ne soit plus \u00e0 jour.[UPDATE] Ces actions sont d\u00e9pass\u00e9es,\u00a0 une mise \u00e0 jours de l’article avec un export directe depuis Photoshop est disponible ici : Photoshop: export to mdpi hdpi xhdpi xxhdpi and xxxhdpi for Android assets\u00ab\u00a0 En g\u00e9n\u00e9ral quand je cr\u00e9e une application, je pars du mdpi, du coup, pour suivre les guidelines android, il faut re-cr\u00e9er tous les drawables en ldpi, hdpi et xhdpi. …<\/p>\n","protected":false},"author":3,"featured_media":542,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[224],"tags":[],"class_list":["post-533","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-articles-dates-pas-mis-a-jours"],"yoast_head":"\nAndroid script Photoshop pour exporter en ldpi, hdpi et xhdpi. - par St\u00e9phanie Walter - UX Researcher & Designer<\/title>\n<meta name=\"description\" content=\"Un set de scripts photoshop (action en anglais) qui automatise la transformation des drawable Android depuis mdpi vers ldpi, xdpi et xhdpi\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/stephaniewalter.design\/fr\/blog\/android-script-photoshop-pour-exporter-en-ldpi-hdpi-et-xhdpi\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Android script Photoshop pour exporter en ldpi, hdpi et xhdpi. - par St\u00e9phanie Walter - UX Researcher & Designer\" \/>\n<meta property=\"og:description\" content=\"Un set de scripts photoshop (action en anglais) qui automatise la transformation des drawable Android depuis mdpi vers ldpi, xdpi et xhdpi\" \/>\n<meta property=\"og:url\" content=\"https:\/\/stephaniewalter.design\/fr\/blog\/android-script-photoshop-pour-exporter-en-ldpi-hdpi-et-xhdpi\/\" \/>\n<meta property=\"og:site_name\" content=\"St\u00e9phanie Walter - Senior UX designer, experte mobile, conf\u00e9rences et articles.\" \/>\n<meta property=\"article:published_time\" content=\"2012-01-04T23:14:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-04-01T16:03:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/stephaniewalter.design\/wp-content\/blogs.dir\/2\/files\/2012\/01\/android_export.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"700\" \/>\n\t<meta property=\"og:image:height\" content=\"200\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"St\u00e9phanie Walter\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@walterstephanie\" \/>\n<meta name=\"twitter:site\" content=\"@walterstephanie\" \/>\n<meta name=\"twitter:label1\" content=\"\u00c9crit par\" \/>\n\t<meta name=\"twitter:data1\" content=\"St\u00e9phanie Walter\" \/>\n\t<meta name=\"twitter:label2\" content=\"Dur\u00e9e de lecture estim\u00e9e\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/stephaniewalter.design\/fr\/blog\/android-script-photoshop-pour-exporter-en-ldpi-hdpi-et-xhdpi\/\",\"url\":\"https:\/\/stephaniewalter.design\/fr\/blog\/android-script-photoshop-pour-exporter-en-ldpi-hdpi-et-xhdpi\/\",\"name\":\"Android script Photoshop pour exporter en ldpi, hdpi et xhdpi. - par St\u00e9phanie Walter - UX Researcher & Designer\",\"isPartOf\":{\"@id\":\"https:\/\/stephaniewalter.design\/fr\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/stephaniewalter.design\/fr\/blog\/android-script-photoshop-pour-exporter-en-ldpi-hdpi-et-xhdpi\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/stephaniewalter.design\/fr\/blog\/android-script-photoshop-pour-exporter-en-ldpi-hdpi-et-xhdpi\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/stephaniewalter.design\/fr\/files\/2012\/01\/android_export.jpg\",\"datePublished\":\"2012-01-04T23:14:40+00:00\",\"dateModified\":\"2023-04-01T16:03:04+00:00\",\"author\":{\"@id\":\"https:\/\/stephaniewalter.design\/fr\/#\/schema\/person\/643a9e5afcb1e550b6f4dca290fbf4cf\"},\"description\":\"Un set de scripts photoshop (action en anglais) qui automatise la transformation des drawable Android depuis mdpi vers ldpi, xdpi et xhdpi\",\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/stephaniewalter.design\/fr\/blog\/android-script-photoshop-pour-exporter-en-ldpi-hdpi-et-xhdpi\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\/\/stephaniewalter.design\/fr\/blog\/android-script-photoshop-pour-exporter-en-ldpi-hdpi-et-xhdpi\/#primaryimage\",\"url\":\"https:\/\/stephaniewalter.design\/fr\/files\/2012\/01\/android_export.jpg\",\"contentUrl\":\"https:\/\/stephaniewalter.design\/fr\/files\/2012\/01\/android_export.jpg\",\"width\":700,\"height\":200},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/stephaniewalter.design\/fr\/#website\",\"url\":\"https:\/\/stephaniewalter.design\/fr\/\",\"name\":\"St\u00e9phanie Walter - Senior UX designer, experte mobile, conf\u00e9rences et articles.\",\"description\":\"Je partage ici mes conseils, mes ressources et outils sur la conception centr\u00e9e utilisateur, la recherche et tests utilisateur, le design de produits, la strat\u00e9gie mobile, l'utilisabilit\u00e9 et l'accessibilit\u00e9.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/stephaniewalter.design\/fr\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/stephaniewalter.design\/fr\/#\/schema\/person\/643a9e5afcb1e550b6f4dca290fbf4cf\",\"name\":\"St\u00e9phanie Walter\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\/\/stephaniewalter.design\/fr\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f383c6a4dc55e331bbe2987b622cee6b?s=96&d=retro&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/f383c6a4dc55e331bbe2987b622cee6b?s=96&d=retro&r=g\",\"caption\":\"St\u00e9phanie Walter\"},\"description\":\"UX Researcher & Product Designer. Mobile Expert. Public speaker. Blog writer. Google Dev Expert Web Platform and Product Design (GDE)\",\"sameAs\":[\"https:\/\/stephaniewalter.design\/\",\"https:\/\/www.linkedin.com\/in\/stephaniewalterpro\/\",\"https:\/\/x.com\/walterstephanie\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Android script Photoshop pour exporter en ldpi, hdpi et xhdpi. - par St\u00e9phanie Walter - UX Researcher & Designer","description":"Un set de scripts photoshop (action en anglais) qui automatise la transformation des drawable Android depuis mdpi vers ldpi, xdpi et xhdpi","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/stephaniewalter.design\/fr\/blog\/android-script-photoshop-pour-exporter-en-ldpi-hdpi-et-xhdpi\/","og_locale":"fr_FR","og_type":"article","og_title":"Android script Photoshop pour exporter en ldpi, hdpi et xhdpi. - par St\u00e9phanie Walter - UX Researcher & Designer","og_description":"Un set de scripts photoshop (action en anglais) qui automatise la transformation des drawable Android depuis mdpi vers ldpi, xdpi et xhdpi","og_url":"https:\/\/stephaniewalter.design\/fr\/blog\/android-script-photoshop-pour-exporter-en-ldpi-hdpi-et-xhdpi\/","og_site_name":"St\u00e9phanie Walter - Senior UX designer, experte mobile, conf\u00e9rences et articles.","article_published_time":"2012-01-04T23:14:40+00:00","article_modified_time":"2023-04-01T16:03:04+00:00","og_image":[{"width":700,"height":200,"url":"https:\/\/stephaniewalter.design\/wp-content\/blogs.dir\/2\/files\/2012\/01\/android_export.jpg","type":"image\/jpeg"}],"author":"St\u00e9phanie Walter","twitter_card":"summary_large_image","twitter_creator":"@walterstephanie","twitter_site":"@walterstephanie","twitter_misc":{"\u00c9crit par":"St\u00e9phanie Walter","Dur\u00e9e de lecture estim\u00e9e":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/stephaniewalter.design\/fr\/blog\/android-script-photoshop-pour-exporter-en-ldpi-hdpi-et-xhdpi\/","url":"https:\/\/stephaniewalter.design\/fr\/blog\/android-script-photoshop-pour-exporter-en-ldpi-hdpi-et-xhdpi\/","name":"Android script Photoshop pour exporter en ldpi, hdpi et xhdpi. - par St\u00e9phanie Walter - UX Researcher & Designer","isPartOf":{"@id":"https:\/\/stephaniewalter.design\/fr\/#website"},"primaryImageOfPage":{"@id":"https:\/\/stephaniewalter.design\/fr\/blog\/android-script-photoshop-pour-exporter-en-ldpi-hdpi-et-xhdpi\/#primaryimage"},"image":{"@id":"https:\/\/stephaniewalter.design\/fr\/blog\/android-script-photoshop-pour-exporter-en-ldpi-hdpi-et-xhdpi\/#primaryimage"},"thumbnailUrl":"https:\/\/stephaniewalter.design\/fr\/files\/2012\/01\/android_export.jpg","datePublished":"2012-01-04T23:14:40+00:00","dateModified":"2023-04-01T16:03:04+00:00","author":{"@id":"https:\/\/stephaniewalter.design\/fr\/#\/schema\/person\/643a9e5afcb1e550b6f4dca290fbf4cf"},"description":"Un set de scripts photoshop (action en anglais) qui automatise la transformation des drawable Android depuis mdpi vers ldpi, xdpi et xhdpi","inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/stephaniewalter.design\/fr\/blog\/android-script-photoshop-pour-exporter-en-ldpi-hdpi-et-xhdpi\/"]}]},{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/stephaniewalter.design\/fr\/blog\/android-script-photoshop-pour-exporter-en-ldpi-hdpi-et-xhdpi\/#primaryimage","url":"https:\/\/stephaniewalter.design\/fr\/files\/2012\/01\/android_export.jpg","contentUrl":"https:\/\/stephaniewalter.design\/fr\/files\/2012\/01\/android_export.jpg","width":700,"height":200},{"@type":"WebSite","@id":"https:\/\/stephaniewalter.design\/fr\/#website","url":"https:\/\/stephaniewalter.design\/fr\/","name":"St\u00e9phanie Walter - Senior UX designer, experte mobile, conf\u00e9rences et articles.","description":"Je partage ici mes conseils, mes ressources et outils sur la conception centr\u00e9e utilisateur, la recherche et tests utilisateur, le design de produits, la strat\u00e9gie mobile, l'utilisabilit\u00e9 et l'accessibilit\u00e9.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/stephaniewalter.design\/fr\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"fr-FR"},{"@type":"Person","@id":"https:\/\/stephaniewalter.design\/fr\/#\/schema\/person\/643a9e5afcb1e550b6f4dca290fbf4cf","name":"St\u00e9phanie Walter","image":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/stephaniewalter.design\/fr\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/f383c6a4dc55e331bbe2987b622cee6b?s=96&d=retro&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f383c6a4dc55e331bbe2987b622cee6b?s=96&d=retro&r=g","caption":"St\u00e9phanie Walter"},"description":"UX Researcher & Product Designer. Mobile Expert. Public speaker. Blog writer. Google Dev Expert Web Platform and Product Design (GDE)","sameAs":["https:\/\/stephaniewalter.design\/","https:\/\/www.linkedin.com\/in\/stephaniewalterpro\/","https:\/\/x.com\/walterstephanie"]}]}},"acf":[],"_links":{"self":[{"href":"https:\/\/stephaniewalter.design\/fr\/wp-json\/wp\/v2\/posts\/533","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/stephaniewalter.design\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/stephaniewalter.design\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/stephaniewalter.design\/fr\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/stephaniewalter.design\/fr\/wp-json\/wp\/v2\/comments?post=533"}],"version-history":[{"count":1,"href":"https:\/\/stephaniewalter.design\/fr\/wp-json\/wp\/v2\/posts\/533\/revisions"}],"predecessor-version":[{"id":8391,"href":"https:\/\/stephaniewalter.design\/fr\/wp-json\/wp\/v2\/posts\/533\/revisions\/8391"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/stephaniewalter.design\/fr\/wp-json\/wp\/v2\/media\/542"}],"wp:attachment":[{"href":"https:\/\/stephaniewalter.design\/fr\/wp-json\/wp\/v2\/media?parent=533"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stephaniewalter.design\/fr\/wp-json\/wp\/v2\/categories?post=533"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stephaniewalter.design\/fr\/wp-json\/wp\/v2\/tags?post=533"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}