diff options
author | xuri <xuri.me@gmail.com> | 2022-05-14 00:54:36 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2022-05-14 00:54:36 +0800 |
commit | c2311ce87dd2c681406728f885d2228dbefd7a21 (patch) | |
tree | 6f99cf415fa045d761b18772dd2be59ff7b92887 /picture.go | |
parent | 0c3fd0223c784ddcc7d2442105b920587b970727 (diff) |
This made library allowing insert WMF format image
Diffstat (limited to 'picture.go')
-rw-r--r-- | picture.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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() |