diff options
author | xuri <xuri.me@gmail.com> | 2019-06-27 21:58:14 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2019-06-27 21:58:14 +0800 |
commit | 54def7eaad9ee0469ca495b3661798919239384a (patch) | |
tree | 4f99eeb2e929c9baa037f31574f7b45cd3d11b81 /picture.go | |
parent | 9f8623047d2fc38e12c3b214475710d25ec88c55 (diff) |
Add TIF, TIFF format images and more detailed error information when open the encrypted file
Diffstat (limited to 'picture.go')
-rw-r--r-- | picture.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -385,7 +385,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() { - var imageTypes = map[string]bool{"jpeg": false, "png": false, "gif": false} + var imageTypes = map[string]bool{"jpeg": false, "png": false, "gif": false, "tiff": false} content := f.contentTypesReader() for _, v := range content.Defaults { _, ok := imageTypes[v.Extension] |