pix_scale 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/NEWS.md +9 -0
- data/lib/pix_scale/command.rb +1 -1
- data/lib/pix_scale/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: 6d73a45dd39fc7155e6de8aa14e07b11da3cffb1
|
4
|
+
data.tar.gz: e7e4111dae8d43d96d7be3304e30b83e2f59c23d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76292d7776f8a3b388758369f6b76706a04a83825ac24b1ca557e0b50291f2a29d23c2e06d039fa2298da46ade6d521c44ef02059d9f5b8987baa33c60d3c3b7
|
7
|
+
data.tar.gz: d3de833422624841bc88e3d69df3666f59ff7901de3fa95fa8dc420f34ccd81df15f20919aa123d9a70a1d0a0be4f8cd5d72ebb9a3fab9b993cd6d053552c08c
|
data/NEWS.md
CHANGED
data/lib/pix_scale/command.rb
CHANGED
@@ -25,7 +25,7 @@ Example: pix_scale foo.png 0.5
|
|
25
25
|
pic = Gdk::Pixbuf.new(pic_path)
|
26
26
|
scaled_pic = pic.scale(pic.width * scale, pic.height * scale)
|
27
27
|
|
28
|
-
output_path = "#{dirname}/#{basename}-#{scale.to_s}
|
28
|
+
output_path = "#{dirname}/#{basename}-#{scale.to_s}.#{extname}"
|
29
29
|
type = (/\Ajpg\z/ =~ extname) ? "jpeg" : extname
|
30
30
|
scaled_pic.save(output_path, type)
|
31
31
|
end
|
data/lib/pix_scale/version.rb
CHANGED