Remove metadata from avatars and background images

master
Bob Mottram 2019-07-24 14:30:05 +01:00
parent a26a11dd5c
commit cf9c715bcd
1 changed files with 3 additions and 1 deletions

View File

@ -20,6 +20,7 @@ from webfinger import storeWebfingerEndpoint
from posts import createOutbox
from auth import storeBasicCredentials
from roles import setRole
from media import removeMetaData
def generateRSAKey() -> (str,str):
key = RSA.generate(2048)
@ -84,6 +85,7 @@ def setProfileImage(baseDir: str,httpPrefix :str,nickname: str,domain: str, \
cmd = '/usr/bin/convert '+imageFilename+' -size '+resolution+' -quality 50 '+profileFilename
subprocess.call(cmd, shell=True)
removeMetaData(profileFilename,profileFilename)
return True
return False