spec/morandi_spec.rb in morandi-0.9.2 vs spec/morandi_spec.rb in morandi-0.9.3
- old
+ new
@@ -69,9 +69,27 @@
_,w,h = Gdk::Pixbuf.get_file_info(out)
expect(w).to be <= 200
expect(h).to be <= 200
end
+ it "should reduce the straighten images" do
+ Morandi.process("sample/sample.jpg", {
+ 'straighten' => 5
+ }, out="sample/out_straighten.jpg")
+ expect(File.exist?(out))
+ _,w,h = Gdk::Pixbuf.get_file_info(out)
+ expect(_.name).to eq('jpeg')
+ end
+
+ it "should reduce the gamma correct images" do
+ Morandi.process("sample/sample.jpg", {
+ 'gamma' => 1.2
+ }, out="sample/out_gamma.jpg")
+ expect(File.exist?(out))
+ _,w,h = Gdk::Pixbuf.get_file_info(out)
+ expect(_.name).to eq('jpeg')
+ end
+
it "should reduce the size of images" do
Morandi.process("sample/sample.jpg", {
'fx' => 'sepia'
}, out="sample/out_sepia.jpg")
expect(File.exist?(out))