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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 004c9334d294dab20f1f543840d5917ea779e3059109ef2056a5073ca711bfb5
4
- data.tar.gz: 7610eb995ed57c237f77bf8826431c55cc808599e9a9cb4f5639328819a11ef1
3
+ metadata.gz: e8f56d10ed5de008f8c42b0429687a2d6cf053c13c98b0d6948466b69092980d
4
+ data.tar.gz: 171affb1389265067487e288e939bc994e853f240a91793c54c8df52b5c6eb8c
5
5
  SHA512:
6
- metadata.gz: ce69d114872ceceff5c2b1d8264b1f0e7f98c6d999f3779e3b13959573cf90c464374903500a848d60e05c6aae0c91d120d82cfcc6c3fb91696ddf8f91e6f35a
7
- data.tar.gz: 4f6148a09823bc917f9f282d111f42d2bc3d2e7acde37c632514dcdd909b439e2620ae3e9bd398662329826cf4e8498fcdfde9de8b0bc3506038f30805912db6
6
+ metadata.gz: a184902ff5c52fb4aaffee3fe4b53166e789bc86c3a9c0b246be6dae74cdc55c349732e30582012dede830547188a93368a0b12df3c97bc25b76bce4f5150b40
7
+ data.tar.gz: 8a4f23488cbdfb74e6c43da8f339d0121d5b1c19d6b9fc7d3e6f1744ee9a1292513b846f950cccdd33f686dcd603340c39b555827979cd5261e68f43503bf25e
@@ -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(':') if options[:width]
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(':') if options[:width] && !options[:tonemap]
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
@@ -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)') do |w|
45
+ 'ratio is preserved, default is 500 pixels)') do |w|
46
46
  options[:width] = w
47
47
  end
48
48
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Video2gif
4
- VERSION = '0.0.25'
4
+ VERSION = '0.0.26'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: video2gif
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.25
4
+ version: 0.0.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emily St.