mirror of https://gitlab.com/bashrc2/epicyon
Remove metadata from avatars and background images
parent
a26a11dd5c
commit
cf9c715bcd
|
@ -20,6 +20,7 @@ from webfinger import storeWebfingerEndpoint
|
||||||
from posts import createOutbox
|
from posts import createOutbox
|
||||||
from auth import storeBasicCredentials
|
from auth import storeBasicCredentials
|
||||||
from roles import setRole
|
from roles import setRole
|
||||||
|
from media import removeMetaData
|
||||||
|
|
||||||
def generateRSAKey() -> (str,str):
|
def generateRSAKey() -> (str,str):
|
||||||
key = RSA.generate(2048)
|
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
|
cmd = '/usr/bin/convert '+imageFilename+' -size '+resolution+' -quality 50 '+profileFilename
|
||||||
subprocess.call(cmd, shell=True)
|
subprocess.call(cmd, shell=True)
|
||||||
|
removeMetaData(profileFilename,profileFilename)
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue