fix: load jpeg image

This commit is contained in:
lilong.129 2025-03-20 20:39:32 +08:00
parent da0bdc4fe5
commit 868acd45ac
4 changed files with 3 additions and 2 deletions

View File

@ -1 +1 @@
v5.0.0-beta-2503201802
v5.0.0-beta-2503202039

View File

@ -8,6 +8,7 @@ import (
"image"
"image/color"
"image/draw"
_ "image/jpeg"
"image/png"
"math"
"os"

View File

@ -12,7 +12,7 @@ import (
)
func TestVLMPlanning(t *testing.T) {
imageBase64, size, err := loadImage("testdata/llk_1.png")
imageBase64, size, err := loadImage("testdata/llk_3.png")
require.NoError(t, err)
userInstruction := `连连看是一款经典的益智消除类小游戏通常以图案或图标为主要元素以下是连连看的基本规则说明

View File

Before

Width:  |  Height:  |  Size: 123 KiB

After

Width:  |  Height:  |  Size: 123 KiB