@shibam/sticker-maker 1.2.15 → 1.2.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/toGif.js +1 -2
- package/package.json +1 -1
package/dist/lib/toGif.js
CHANGED
|
@@ -23,7 +23,7 @@ const videoToGif = async ({ buffer, extType, type, text = '', maxDuration = 7, m
|
|
|
23
23
|
// Determine scaling and cropping parameters based on type
|
|
24
24
|
const shape = type === StickerTypes.SQUARE
|
|
25
25
|
? 'scale=320:-1:flags=lanczos,fps=10,crop=min(iw\\,ih):min(iw\\,ih)'
|
|
26
|
-
: 'scale=320:-1:flags=lanczos,fps=
|
|
26
|
+
: 'scale=320:-1:flags=lanczos,fps=15';
|
|
27
27
|
// Process video with ffmpeg
|
|
28
28
|
await new Promise((resolve, reject) => {
|
|
29
29
|
ffmpeg(inputFile)
|
|
@@ -31,7 +31,6 @@ const videoToGif = async ({ buffer, extType, type, text = '', maxDuration = 7, m
|
|
|
31
31
|
.outputOptions([
|
|
32
32
|
'-vf', shape,
|
|
33
33
|
'-loop', '0',
|
|
34
|
-
'-lossless', '0',
|
|
35
34
|
'-t', maxDuration.toString(),
|
|
36
35
|
'-preset', 'ultrafast'
|
|
37
36
|
])
|