From c2311ce87dd2c681406728f885d2228dbefd7a21 Mon Sep 17 00:00:00 2001 From: xuri Date: Sat, 14 May 2022 00:54:36 +0800 Subject: This made library allowing insert WMF format image --- picture.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'picture.go') diff --git a/picture.go b/picture.go index f8133ca..8e2fa12 100644 --- a/picture.go +++ b/picture.go @@ -366,7 +366,7 @@ func (f *File) addMedia(file []byte, ext string) string { // setContentTypePartImageExtensions provides a function to set the content // type for relationship parts and the Main Document part. func (f *File) setContentTypePartImageExtensions() { - imageTypes := map[string]string{"jpeg": "image/", "png": "image/", "gif": "image/", "tiff": "image/", "emf": "image/x-"} + imageTypes := map[string]string{"jpeg": "image/", "png": "image/", "gif": "image/", "tiff": "image/", "emf": "image/x-", "wmf": "image/x-"} content := f.contentTypesReader() content.Lock() defer content.Unlock() -- cgit v1.2.1