Only bliurhash png

This commit is contained in:
bashrc committed 2019-08-30 17:39:39 +01:00
1 parent 832937de97
commit a91263c208
1 file changed
+1 -1
+1 -1
View File
@@ -106,7 +106,7 @@ def attachImage(baseDir: str,httpPrefix: str,domain: str,port: int, \
'type': 'Document',
'url': httpPrefix+'://'+domain+'/'+mediaPath
}
if useBlurhash and not mediaType.startswith('video'):
if useBlurhash and fileExtension=='png':
attachmentJson['blurhash']=getImageHash(imageFilename)
postJson['attachment']=[attachmentJson]