mirror of https://gitlab.com/bashrc2/epicyon
Remove metadata from images
parent
830b6c2d00
commit
f5097eafbd
2
media.py
2
media.py
|
@ -119,7 +119,7 @@ def attachMedia(baseDir: str,httpPrefix: str,domain: str,port: int, \
|
||||||
attachmentJson['blurhash']=getImageHash(imageFilename)
|
attachmentJson['blurhash']=getImageHash(imageFilename)
|
||||||
postJson['attachment']=[attachmentJson]
|
postJson['attachment']=[attachmentJson]
|
||||||
|
|
||||||
if baseDir:
|
if baseDir and mediaType=='image':
|
||||||
removeMetaData(imageFilename,mediaFilename)
|
removeMetaData(imageFilename,mediaFilename)
|
||||||
#copyfile(imageFilename,mediaFilename)
|
#copyfile(imageFilename,mediaFilename)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue