dragonfly_libvips 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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4ef687552f3cb12bb5041712cae2f352adf1f98
|
4
|
+
data.tar.gz: 84b500cd5199712c4442394198c81cee0185e598
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d94b3e1790b2abcbd8b0ae25d82611be63ac84e0db693d5c0dad08750edc15ed9b0ca36c72d7c64e776d8ef3d07ec7ecb5b8e8a19766e2794c5c3668e01cbe04
|
7
|
+
data.tar.gz: a12964f782048554deac97cd274f54ad89d8eeee435d89bd05f9afe93744f6cd2aeb9f09e107e629e031046c2cf14bf7839ea71486e31e97245e80202a5419cb
|
@@ -5,8 +5,16 @@ module DragonflyLibvips
|
|
5
5
|
vipsthumbnail_command = content.env[:vipsthumbnail_command] || 'vipsthumbnail'
|
6
6
|
format = opts['format']
|
7
7
|
|
8
|
+
if input_args = opts['input_args']
|
9
|
+
input_args = "[#{input_args}]"
|
10
|
+
end
|
11
|
+
|
12
|
+
if output_args = opts['output_args']
|
13
|
+
output_args = "[#{output_args}]"
|
14
|
+
end
|
15
|
+
|
8
16
|
content.shell_update ext: format do |old_path, new_path|
|
9
|
-
"#{vipsthumbnail_command} #{old_path} -o #{new_path} #{args}"
|
17
|
+
"#{vipsthumbnail_command} #{old_path}#{input_args} -o #{new_path}#{output_args} #{args}"
|
10
18
|
end
|
11
19
|
|
12
20
|
if format
|