From ab12307393461e7055f664d296a3a0e686eebb39 Mon Sep 17 00:00:00 2001 From: xuri Date: Sun, 21 Aug 2022 01:09:32 +0800 Subject: This made library allowing insert EMZ and WMZ format image - Update dependencies module --- picture_test.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'picture_test.go') diff --git a/picture_test.go b/picture_test.go index 3ac1afb..37ccdc5 100644 --- a/picture_test.go +++ b/picture_test.go @@ -98,8 +98,12 @@ func TestAddPictureErrors(t *testing.T) { decodeConfig := func(r io.Reader) (image.Config, error) { return image.Config{Height: 100, Width: 90}, nil } image.RegisterFormat("emf", "", decode, decodeConfig) image.RegisterFormat("wmf", "", decode, decodeConfig) + image.RegisterFormat("emz", "", decode, decodeConfig) + image.RegisterFormat("wmz", "", decode, decodeConfig) assert.NoError(t, f.AddPicture("Sheet1", "Q1", filepath.Join("test", "images", "excel.emf"), "")) assert.NoError(t, f.AddPicture("Sheet1", "Q7", filepath.Join("test", "images", "excel.wmf"), "")) + assert.NoError(t, f.AddPicture("Sheet1", "Q13", filepath.Join("test", "images", "excel.emz"), "")) + assert.NoError(t, f.AddPicture("Sheet1", "Q19", filepath.Join("test", "images", "excel.wmz"), "")) assert.NoError(t, f.SaveAs(filepath.Join("test", "TestAddPicture2.xlsx"))) assert.NoError(t, f.Close()) } -- cgit v1.2.1