pwa-builder / PWABuilder

The simplest way to create progressive web apps across platforms and devices. Start here. This repo is home to several projects in the PWABuilder family of tools.
https://docs.pwabuilder.com
Other
2.75k stars 284 forks source link

Error generating android package #2307

Closed koala974 closed 2 years ago

koala974 commented 2 years ago

I received the following error when generating a package for https://***

Error: Error generating Android package. Status code: 500 Error: Internal Server Error Details: Error generating app package: Unsupported MIME type: image/webp stack: Error: Unsupported MIME type: image/webp at Jimp.call (/app/node_modules/@jimp/utils/src/index.js:15:13) at Jimp.call (/app/node_modules/@jimp/core/src/utils/image-bitmap.js:167:25) at Jimp.parseBitmap (/app/node_modules/@jimp/core/src/index.js:400:17) at new Jimp (/app/node_modules/@jimp/core/src/index.js:355:12) at _construct (/app/node_modules/@babel/runtime/helpers/construct.js:22:21) at /app/node_modules/@jimp/core/src/index.js:874:5 at new Promise () at Function.Jimp.read (/app/node_modules/@jimp/core/src/index.js:873:10) at ImageHelper.fetchIcon (/app/node_modules/@bubblewrap/core/dist/lib/ImageHelper.js:112:30) at runMicrotasks ()

ghost commented 2 years ago

Hello koala974, thank you for opening an issue with us!

I have automatically added a "needs triage" label to help get things started. Our team will investigate the issue and help solve it ASAP. Other community members may also look into the issue and provide feedback 🙌

jgw96 commented 2 years ago

@koala974 , the issue you are running into here is that a webp image is not supported for icons on the Android platform. If you change your icons to png, jpg etc, it will work. Our docs here https://blog.pwabuilder.com/docs/generating-your-android-package have some extra information about icons. Thanks for using PWABuilder!