# logo图片不是RGBA问题

# 问题描述

error: proc macro panicked                                                                                                                                                                              
  --> src\lib.rs:12:14
   |
12 |         .run(tauri::generate_context!())
   |              ^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: message: icon E:\rust_demo_code\rust_tauri_test\tauri-app-js-vue-demo02\src-tauri\icons/32x32.png is not RGBA

error: could not compile `tauri-app-js-vue-demo02` (lib) due to 1 previous error

1
2
3
4
5
6
7
8
9
10

# 问题解决后总结

image-20250409184227433

没有修改前的图片信息:

$ file 32x32.png
32x32.png: PNG image data, 32 x 32, 8-bit colormap, non-interlaced
1
2

修改后的图片信息:

$ file 32x32.png
32x32.png: PNG image data, 32 x 32, 8-bit/color RGBA, non-interlaced
1
2
Last Updated: 4/13/2025, 8:41:06 AM