video2gif 0.0.31 → 0.0.32

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: 2bb6223bd87603ba92ca6bcb93c3a01b60b4d9c40e0b9389fd47913cf618a6ae
4
- data.tar.gz: cdb5efabe21d6ffd7fd2d90d3c7fcfe32946241a70ee6ec9b0122456d56678ef
3
+ metadata.gz: f2905fc3a1a3ebebfa2f2e9cfe464ddff85f3e287d163b4eb5195a6b9766e3bb
4
+ data.tar.gz: 4fd1a4c2233f36261253684a57ed285b06dfde299c66c953d30467fe905591f7
5
5
  SHA512:
6
- metadata.gz: 71eea53100d93c48dfee4e5fe633fd4a322750c0bf078f3ee1c593c9657ef4911956537a8c74be5dbe31a94d0314fa4168035ea6352271287c61f3839d9a28ce
7
- data.tar.gz: 793cb47a931b5326deef087f599fc6d2d00eafdfe74cb5ee4e1c485ee208745d9cb4de69936b5b662caa6f881a64e0864d426f54612533a6dbfddb7177bf4c2e
6
+ metadata.gz: 3f086509e0375b35179c4e583601c5808c5958ee2f16a7093831ef305b0c5e35dc7c179f222cc9814057e5f62cca2edff974c2cdca07c1780625fb27cda4ecc1
7
+ data.tar.gz: de455ff906c6a4a8c0254edb74dc646e55facb932c0f07fe866732e057ac867e407f032733258a14f981bf62086c98062e41bee5f5f7d6e2a02208e38cc987c6
@@ -37,11 +37,12 @@ module Video2gif
37
37
  # Apply automatic cropping discovered during the cropdetect run.
38
38
  filtergraph << options[:autocrop] if options[:autocrop]
39
39
 
40
- # Apply manual cropping, if any.
41
- filtergraph << "crop=w=#{options[:wregion]}" if options[:wregion]
42
- filtergraph << "crop=h=#{options[:hregion]}" if options[:hregion]
43
- filtergraph << "crop=x=#{options[:xoffset]}" if options[:xoffset]
44
- filtergraph << "crop=y=#{options[:yoffset]}" if options[:yoffset]
40
+ crop = []
41
+ crop << "w=#{options[:wregion]}" if options[:wregion]
42
+ crop << "h=#{options[:hregion]}" if options[:hregion]
43
+ crop << "x=#{options[:xoffset]}" if options[:xoffset]
44
+ crop << "y=#{options[:yoffset]}" if options[:yoffset]
45
+ filtergraph << 'crop=' + crop.join(':') unless crop.empty?
45
46
 
46
47
  # Scale here before other filters to avoid unnecessary processing.
47
48
  if options[:tonemap]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Video2gif
4
- VERSION = '0.0.31'
4
+ VERSION = '0.0.32'
5
5
  end
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.31
4
+ version: 0.0.32
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-06-01 00:00:00.000000000 Z
11
+ date: 2019-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler