Ported even more commands to Magick++

This commit is contained in:
TheEssem 2020-07-22 13:12:38 -05:00
parent 950ce00a80
commit 78dbeabd39
24 changed files with 468 additions and 65 deletions

View file

@ -32,7 +32,7 @@ const typeCheck = async (image, image2, gifv = false) => {
path: path,
url: image2
};
if (gifv) payload.delay = (await execPromise(`ffprobe -v 0 -of csv=p=0 -select_streams v:0 -show_entries stream=r_frame_rate ${path}`)).stdout.replace("\n", "");
if (payload.type === "gif") payload.delay = (await execPromise(`ffprobe -v 0 -of csv=p=0 -select_streams v:0 -show_entries stream=r_frame_rate ${path}`)).stdout.replace("\n", "");
return payload;
} else {
// if not, then return false