lava-frame_compare 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lava/session.rb +4 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bebaac216dbc7938cdba61d15efeb72b3eff304c
|
4
|
+
data.tar.gz: 1decd2d9f5c1d83a6cea886d5d493261438afdf9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98176906cf5e8bd3ec9160f7c4659b2a5358d924f5a4f23ec493f6b8c01ae204a8e86909e627f9550f4d29e9bf6b002cbc96d305a8e7da4507e0e93a5988e860
|
7
|
+
data.tar.gz: 96fa4c42137696775980098d743c8026c4a14985b5940ba0bca616a3bb79d05095a8d558a984241d9c6afbc62d137f54b0f3c4b0136353d6a08e042d90206d26
|
data/lib/lava/session.rb
CHANGED
@@ -67,15 +67,17 @@ module Lava
|
|
67
67
|
end
|
68
68
|
|
69
69
|
rotate = args[:rotate] || 0
|
70
|
+
step = args[:step] || 1
|
70
71
|
max_width = args[:max_width] || Lava::DEFAULT_MAX_WIDTH
|
71
72
|
max_height = args[:max_height] || Lava::DEFAULT_MAX_HEIGHT
|
72
73
|
speed = args[:speed] || Lava::DEFAULT_SPEED
|
73
74
|
|
74
75
|
|
75
76
|
rimages = Magick::ImageList.new
|
76
|
-
samples.each do |
|
77
|
-
s
|
77
|
+
(0 ... samples.count ).step(step).each do |i|
|
78
|
+
s = samples[i]
|
78
79
|
s.rimage.rotate! rotate
|
80
|
+
s.rimage.resize_to_fit!(max_width, max_height)
|
79
81
|
rimages << s.rimage
|
80
82
|
end
|
81
83
|
rimages.ticks_per_second = speed
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lava-frame_compare
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BBC
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-02-
|
12
|
+
date: 2015-02-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rmagick
|