Skip to content

Commit 022d36f

Browse files
committed
fix: update jimp usage for v1.x
1 parent 8fc66e4 commit 022d36f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

create_mipmap_images.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ const sizes = {
1111

1212
async function main(imageUrl) {
1313
const image = await Jimp.read(imageUrl);
14-
image.resize(512, 512).write('app/src/main/ic_launcher-playstore.png');
14+
image.resize({ w: 512, h: 512 }).write('app/src/main/ic_launcher-playstore.png');
1515
for (const [sizeName, sizePixels] of Object.entries(sizes)) {
1616
const launcherPath = `app/src/main/res/mipmap-${sizeName}/ic_launcher.png`;
1717
const roundPath = `app/src/main/res/mipmap-${sizeName}/ic_launcher_round.png`;
18-
image.resize(sizePixels, sizePixels).write(launcherPath);
18+
image.resize({ w: sizePixels, h: sizePixels }).write(launcherPath);
1919
image.circle().write(roundPath);
2020
}
2121
}

0 commit comments

Comments
 (0)