summaryrefslogtreecommitdiff
path: root/picture.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2019-06-27 21:58:14 +0800
committerxuri <xuri.me@gmail.com>2019-06-27 21:58:14 +0800
commit54def7eaad9ee0469ca495b3661798919239384a (patch)
tree4f99eeb2e929c9baa037f31574f7b45cd3d11b81 /picture.go
parent9f8623047d2fc38e12c3b214475710d25ec88c55 (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.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/picture.go b/picture.go
index 7804bce..812eb5c 100644
--- a/picture.go
+++ b/picture.go
@@ -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]