Commit a697f8d
committed
fix: copy background image to avoid re-encoding
The original implementation was re-encoding the JPEG image when saving
to both background.jpg and background_in_theme.jpg files, which could
cause quality degradation and performance issues. This fix adds a
copyFile function to duplicate the file without re-encoding, preserving
image quality and improving efficiency.
Log: Fixed background image quality issue in GRUB theme
Influence:
1. Test that background images are properly displayed in GRUB menu
2. Verify both background.jpg and background_in_theme.jpg files are
created
3. Check that image quality is maintained without artifacts
4. Test with different image formats and sizes
5. Verify the copy operation works correctly with file permissions
fix: 复制背景图片避免重复编码
原实现在保存到 background.jpg 和 background_in_theme.jpg 文件时都会重新
编码 JPEG 图像,这可能导致质量下降和性能问题。此修复添加了 copyFile 函数
来复制文件而不重新编码,保持图像质量并提高效率。
Log: 修复了 GRUB 主题中的背景图片质量问题
Influence:
1. 测试 GRUB 菜单中背景图片是否正确显示
2. 验证 background.jpg 和 background_in_theme.jpg 文件是否都创建成功
3. 检查图像质量是否保持,没有出现伪影
4. 使用不同格式和大小的图片进行测试
5. 验证复制操作是否正确处理文件权限
PMS: BUG-3158091 parent 824f8f3 commit a697f8d
1 file changed
+9
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
257 | | - | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
258 | 266 | | |
259 | 267 | | |
260 | 268 | | |
| |||
0 commit comments