mirror of https://gitlab.com/bashrc2/epicyon
Only bliurhash png
parent
832937de97
commit
a91263c208
2
media.py
2
media.py
|
@ -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]
|
||||
|
||||
|
|
Loading…
Reference in New Issue