mirror of https://gitgud.io/fatchan/jschan.git
move gif fix to separate file to nto do in unnecessary situation eng. audio upload, preparing for more accepted file types
parent
8cf217b7bb
commit
6870a23bb2
1 changed files with 15 additions and 0 deletions
@ -0,0 +1,15 @@ |
||||
'use strict'; |
||||
|
||||
module.exports = (file) => { |
||||
//handle gifs with multiple geometry and size
|
||||
if (Array.isArray(file.geometry)) { |
||||
file.geometry = file.geometry[0]; |
||||
} |
||||
if (Array.isArray(file.sizeString)) { |
||||
file.sizeString = file.sizeString[0]; |
||||
} |
||||
if (Array.isArray(file.geometryString)) { |
||||
file.geometryString = file.geometryString[0]; |
||||
} |
||||
return file; |
||||
} |
Loading…
Reference in new issue