We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fc66e4 commit 022d36fCopy full SHA for 022d36f
create_mipmap_images.js
@@ -11,11 +11,11 @@ const sizes = {
11
12
async function main(imageUrl) {
13
const image = await Jimp.read(imageUrl);
14
- image.resize(512, 512).write('app/src/main/ic_launcher-playstore.png');
+ image.resize({ w: 512, h: 512 }).write('app/src/main/ic_launcher-playstore.png');
15
for (const [sizeName, sizePixels] of Object.entries(sizes)) {
16
const launcherPath = `app/src/main/res/mipmap-${sizeName}/ic_launcher.png`;
17
const roundPath = `app/src/main/res/mipmap-${sizeName}/ic_launcher_round.png`;
18
- image.resize(sizePixels, sizePixels).write(launcherPath);
+ image.resize({ w: sizePixels, h: sizePixels }).write(launcherPath);
19
image.circle().write(roundPath);
20
}
21
0 commit comments