video2gif 0.0.25 → 0.0.26
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/video2gif/ffmpeg.rb +6 -6
- data/lib/video2gif/options.rb +1 -1
- data/lib/video2gif/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8f56d10ed5de008f8c42b0429687a2d6cf053c13c98b0d6948466b69092980d
|
4
|
+
data.tar.gz: 171affb1389265067487e288e939bc994e853f240a91793c54c8df52b5c6eb8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a184902ff5c52fb4aaffee3fe4b53166e789bc86c3a9c0b246be6dae74cdc55c349732e30582012dede830547188a93368a0b12df3c97bc25b76bce4f5150b40
|
7
|
+
data.tar.gz: 8a4f23488cbdfb74e6c43da8f339d0121d5b1c19d6b9fc7d3e6f1744ee9a1292513b846f950cccdd33f686dcd603340c39b555827979cd5261e68f43503bf25e
|
data/lib/video2gif/ffmpeg.rb
CHANGED
@@ -59,9 +59,9 @@ module Video2gif
|
|
59
59
|
filtergraph << 'zscale=' + %W[
|
60
60
|
dither=none
|
61
61
|
filter=lanczos
|
62
|
-
width=#{options[:width]}
|
63
|
-
height=trunc(#{options[:width]}/dar)
|
64
|
-
].join(':')
|
62
|
+
width=#{ options[:width] || 500 }
|
63
|
+
height=trunc(#{ options[:width] || 500 }/dar)
|
64
|
+
].join(':')
|
65
65
|
filtergraph << 'zscale=transfer=linear:npl=100'
|
66
66
|
filtergraph << 'zscale=npl=100'
|
67
67
|
filtergraph << 'format=gbrpf32le'
|
@@ -75,9 +75,9 @@ module Video2gif
|
|
75
75
|
filtergraph << 'scale=' + %W[
|
76
76
|
flags=lanczos
|
77
77
|
sws_dither=none
|
78
|
-
width=#{options[:width]}
|
79
|
-
height=trunc(#{options[:width]}/dar)
|
80
|
-
].join(':')
|
78
|
+
width=#{ options[:width] || 500 }
|
79
|
+
height=trunc(#{ options[:width] || 500 }/dar)
|
80
|
+
].join(':') !options[:tonemap]
|
81
81
|
end
|
82
82
|
|
83
83
|
# Perform any desired equalization before we overlay text so that
|
data/lib/video2gif/options.rb
CHANGED
data/lib/video2gif/version.rb
CHANGED