pano 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -57,6 +57,7 @@ module Pano
57
57
  i = 0
58
58
  pano.each_slice(BRACKETS) do |files|
59
59
  i+=1
60
+ pngs(File.join(pano_dir, "png"), "%02d" % i, files.first)
60
61
  fused = enfuse(File.join(pano_dir, "fused"), "%02d" % i, files)
61
62
  if apply_mask
62
63
  if (1..6).include? i
@@ -81,6 +82,17 @@ module Pano
81
82
  end
82
83
 
83
84
  end
85
+
86
+ def pngs dir, name, file
87
+ FileUtils.mkpath dir
88
+ target = File.join(dir, name + ".png").to_s
89
+ cmd = "convert #{file.jpg_path} #{target}"
90
+
91
+ puts "-----------------"
92
+ puts cmd
93
+ puts "-----------------"
94
+ system cmd
95
+ end
84
96
 
85
97
  def enfuse dir, name, files = []
86
98
  return if files.blank?
@@ -1,3 +1,3 @@
1
1
  module Pano
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 8
9
- version: 0.0.8
8
+ - 9
9
+ version: 0.0.9
10
10
  platform: ruby
11
11
  authors:
12
12
  - Yury Korolev