forked from indymedia/epicyon
Only bliurhash png
This commit is contained in:
1 parent
832937de97
commit
a91263c208
1 file changed
+1
-1
@@ -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]
|
||||
|
||||
|
||||
Reference in new issue
Block a user