mirror of https://gitgud.io/fatchan/jschan.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
359 B
15 lines
359 B
'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;
|
|
}
|
|
|