Only bliurhash png

master
Bob Mottram 2019-08-30 17:39:39 +01:00
parent 832937de97
commit a91263c208
1 changed files with 1 additions and 1 deletions

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]