video2gif 0.0.27 → 0.0.28
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 +4 -4
- data/lib/video2gif/options.rb +1 -1
- data/lib/video2gif/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1e5b0b598afa0c79e9f824af445d5cdb14ed9573a7012122366ae114f7dd2d4
|
4
|
+
data.tar.gz: 2ed80dd2b5bb00836ee6ec23b9a1b26770c65719f6e5e3327504e735dcc1bda5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1522c31771bc03c82e296c427ef2d2745890a8987144540317c7e72e29787af7752e97c640027fe228ec84ad8d560847700d73f097ffa8345095f3377fcf99f6
|
7
|
+
data.tar.gz: 1968f8d86fb19be6486b07c1eb1355c5b95634135bddc5f2029b430b3e7e5cade02e7c22dbc26f1485a6e8ecd7bb0b7d90040400df9c1e94b9cea21a0c924ad2
|
data/lib/video2gif/ffmpeg.rb
CHANGED
@@ -59,8 +59,8 @@ module Video2gif
|
|
59
59
|
filtergraph << 'zscale=' + %W[
|
60
60
|
dither=none
|
61
61
|
filter=lanczos
|
62
|
-
width=#{ options[:width] ||
|
63
|
-
height=trunc(#{ options[:width] ||
|
62
|
+
width=#{ options[:width] || 400 }
|
63
|
+
height=trunc(#{ options[:width] || 400 }/dar)
|
64
64
|
].join(':')
|
65
65
|
filtergraph << 'zscale=transfer=linear:npl=100'
|
66
66
|
filtergraph << 'zscale=npl=100'
|
@@ -75,8 +75,8 @@ 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] ||
|
78
|
+
width=#{ options[:width] || 400 }
|
79
|
+
height=trunc(#{ options[:width] || 400 }/dar)
|
80
80
|
].join(':') unless options[:tonemap]
|
81
81
|
end
|
82
82
|
|
data/lib/video2gif/options.rb
CHANGED
@@ -42,7 +42,7 @@ module Video2gif
|
|
42
42
|
parser.on('-w WIDTH',
|
43
43
|
'--width WIDTH',
|
44
44
|
'Scale the width of the resulting GIF in pixels (aspect',
|
45
|
-
'ratio is preserved, default is
|
45
|
+
'ratio is preserved, default is 400 pixels)') do |w|
|
46
46
|
options[:width] = w
|
47
47
|
end
|
48
48
|
|
data/lib/video2gif/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: video2gif
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.28
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Emily St.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05-
|
11
|
+
date: 2019-05-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|