Add files via upload

This commit is contained in:
zsyg
2025-07-20 13:24:20 +08:00
committed by GitHub
parent d1c62f4488
commit a93e4d67f4
2 changed files with 2 additions and 2 deletions

View File

@@ -272,6 +272,6 @@ void MainWindow::convert_cb(Fl_Widget* w, void* data) {
if (success) {
fl_message("转换成功!");
} else {
fl_alert("转换失败请检查输入文件!");
fl_alert("转换失败,请检查输入文件!");
}
}

View File

@@ -130,7 +130,7 @@ ImageData ImageLoader::load(const std::string& path) {
throw std::runtime_error("无法解码WebP图像");
}
// 如果没有alpha通道转换为RGB格式
// 如果没有alpha通道,转换为RGB格式
if (data.channels == 3) {
uint8_t* rgb_pixels = new uint8_t[data.width * data.height * 3];
for (int i = 0; i < data.width * data.height; ++i) {