photo-helper 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/Gemfile.lock +1 -1
- data/lib/photo-helper/generate.rb +2 -1
- data/lib/photo-helper/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e811750def35215e7957fd3e1b3cfbb1093dad4
|
4
|
+
data.tar.gz: 89b2131457e7a8161a07c8cade91a673bec31da6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d3d5fe8e8b6b135627de07d6920a9d41f238099ce9bc6781caccc1da61c8f45a308efff08f7ec86ae6547a48767fc20031a42b45ae4b6528fa5867034f488b8
|
7
|
+
data.tar.gz: 80f2efe24424432ab6b80b109cd366c2fac1d1629015139f33eb9d99dea14967cbda1cc20760bfee1a63b74b338f7bb04af1c65c46cbfd681e412f2427100144
|
data/Gemfile.lock
CHANGED
@@ -9,6 +9,7 @@ module PhotoHelper
|
|
9
9
|
|
10
10
|
desc "jpeg", "generate jpeg from raw files"
|
11
11
|
method_option :folder, aliases: "-f", type: :string, default: "."
|
12
|
+
method_option :dpi, type: :number, default: 350
|
12
13
|
def jpeg(folder = nil)
|
13
14
|
folder ||= options[:folder]
|
14
15
|
puts folder
|
@@ -25,7 +26,7 @@ module PhotoHelper
|
|
25
26
|
next if File.exists? File.join(search_path, jpeg_file_name)
|
26
27
|
puts file
|
27
28
|
|
28
|
-
`sips -s format jpeg #{file} --out "./jpegs/#{jpeg_file_name}.JPG"`
|
29
|
+
`sips -s format jpeg #{file} -s dpiHeight #{options[:dpi]} -s dpiWidth #{options[:dpi]} --out "./jpegs/#{jpeg_file_name}.JPG"`
|
29
30
|
end
|
30
31
|
|
31
32
|
|
data/lib/photo-helper/version.rb
CHANGED