fix: #9074, fix svg uploads

This commit is contained in:
Barış Soner Uşaklı
2020-12-11 22:50:42 -05:00
parent ab98740821
commit 8f938eba19
2 changed files with 4 additions and 3 deletions

View File

@@ -86,7 +86,7 @@ image.size = async function (path) {
};
image.stripEXIF = async function (path) {
if (!meta.config.stripEXIFData || path.endsWith('.gif')) {
if (!meta.config.stripEXIFData || path.endsWith('.gif') || path.endsWith('.svg')) {
return;
}
try {