diff options
author | xuri <xuri.me@gmail.com> | 2022-08-21 01:09:32 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2022-08-21 01:09:32 +0800 |
commit | ab12307393461e7055f664d296a3a0e686eebb39 (patch) | |
tree | e2f5f2b43feaa7997eccf4471f5ef695af7076fe /picture.go | |
parent | cfa2d603ddb0fac50ca1af3fe1d28fe17a65a6f3 (diff) |
This made library allowing insert EMZ and WMZ format image
- Update dependencies module
Diffstat (limited to 'picture.go')
-rw-r--r-- | picture.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -363,7 +363,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-", "wmf": "image/x-"} + imageTypes := map[string]string{"jpeg": "image/", "png": "image/", "gif": "image/", "tiff": "image/", "emf": "image/x-", "wmf": "image/x-", "emz": "image/x-", "wmz": "image/x-"} content := f.contentTypesReader() content.Lock() defer content.Unlock() |