Splash Screen Generation Error

Hello,

I’m facing issues creating my android app as the splash PNG doesn’t appear to want to be accepted. I’ve tried adjusting it and resizing but unable to get it to work.

The error I get is: UserError: fatal error: [Error: pngload_buffer: libpng read error

And below is the error log snippet:

2024-07-02T08:47:52.913Z cordova-res:platform Building splash resources for android platform
2024-07-02T08:47:52.919Z cordova-res:image Source image for splash: {
  format: 'png',
  size: 3592192,
  width: 2732,
  height: 2732,
  space: 'srgb',
  channels: 4,
  depth: 'uchar',
  density: 72,
  isProgressive: false,
  hasProfile: true,
  hasAlpha: true,
  icc: <Buffer 00 00 03 ac 4b 43 4d 53 02 10 00 00 6d 6e 74 72 52 47 42 20 58 59 5a 20 07 ce 00 0c 00 01 00 12 00 3a 00 15 61 63 73 70 4d 53 46 54 00 00 00 00 4b 4f ... 890 more bytes>
}
2024-07-02T08:47:52.919Z cordova-res:platform Using '/resources/splashTemplate.png' for splash source image for android
2024-07-02T08:47:52.920Z cordova-res:image Generating 'resources/android/splash/drawable-land-ldpi-screen.png' (320x240) fit='cover' position='center'
2024-07-02T08:47:52.922Z cordova-res:image Generating 'resources/android/splash/drawable-land-hdpi-screen.png' (800x480) fit='cover' position='center'
2024-07-02T08:47:52.922Z cordova-res:image Generating 'resources/android/splash/drawable-land-xhdpi-screen.png' (1280x720) fit='cover' position='center'
2024-07-02T08:47:52.922Z cordova-res:image Generating 'resources/android/splash/drawable-land-xxhdpi-screen.png' (1600x960) fit='cover' position='center'
2024-07-02T08:47:52.923Z cordova-res:image Generating 'resources/android/splash/drawable-port-ldpi-screen.png' (240x320) fit='cover' position='center'
2024-07-02T08:47:52.923Z cordova-res:image Generating 'resources/android/splash/drawable-land-xxxhdpi-screen.png' (1920x1280) fit='cover' position='center'
2024-07-02T08:47:52.923Z cordova-res:image Generating 'resources/android/splash/drawable-port-mdpi-screen.png' (320x480) fit='cover' position='center'
2024-07-02T08:47:52.923Z cordova-res:image Generating 'resources/android/splash/drawable-port-hdpi-screen.png' (480x800) fit='cover' position='center'
2024-07-02T08:47:52.924Z cordova-res:image Generating 'resources/android/splash/drawable-port-xhdpi-screen.png' (720x1280) fit='cover' position='center'
2024-07-02T08:47:52.924Z cordova-res:image Generating 'resources/android/splash/drawable-port-xxhdpi-screen.png' (960x1600) fit='cover' position='center'
2024-07-02T08:47:52.924Z cordova-res:image Generating 'resources/android/splash/drawable-port-xxxhdpi-screen.png' (1280x1920) fit='cover' position='center'
2024-07-02T08:47:52.924Z cordova-res:image Generating 'resources/android/splash/drawable-land-mdpi-screen.png' (480x320) fit='cover' position='center'
2024-07-02T08:47:53.017Z cordova-res Caught fatal error: [Error: pngload_buffer: libpng read error
vips2png: unable to write to target target
]
Error: pngload_buffer: libpng read error
vips2png: unable to write to target target


2024-07-02 08:47:53,261 - fatal error: [Error: pngload_buffer: libpng read error
2024-07-02 08:47:53,261 - Build failed 93a4ee91-0fff-49ce-99fd-54583be12d10
2024-07-02 08:47:55,286 - Output: 
2024-07-02 08:47:55,290 - Uploading voltbuilder.log...

Any ideas? Thanks!

Are you able to share your project or a small test project that exhibits this error?