From c54a7fe80c49a004648c94a3b4e16a5233a05188 Mon Sep 17 00:00:00 2001 From: Julen Garcia Date: Fri, 15 May 2015 09:06:43 +0200 Subject: [PATCH] Add additional parameter to preserve png colormap. --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index e9eeafe..dd06421 100644 --- a/index.js +++ b/index.js @@ -48,6 +48,7 @@ var getPlatforms = function (projectName) { { name : 'drawable-mdpi/icon.png', size : 48 }, { name : 'drawable-xhdpi/icon.png', size : 96 }, { name : 'drawable-xxhdpi/icon.png', size : 144 }, + { name : 'drawable-xxxhdpi/icon.png', size : 192 }, ] }); // TODO: add all platforms @@ -121,6 +122,7 @@ var generateIcon = function (platform, icon) { format: 'png', width: icon.size, height: icon.size, + customArgs: ['-define', 'png:preserve-colormap'] } , function(err, stdout, stderr){ if (err) { deferred.reject(err);