pano 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/pano/image_file_set.rb +12 -0
- data/lib/pano/version.rb +1 -1
- metadata +2 -2
data/lib/pano/image_file_set.rb
CHANGED
@@ -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?
|
data/lib/pano/version.rb
CHANGED