lib/jpeg.rb in jpeg-0.2.2 vs lib/jpeg.rb in jpeg-0.3.0
- old
+ new
@@ -8,6 +8,14 @@
tmp.rewind
jpeg = Jpeg.open(tmp.path)
tmp.close
jpeg
end
+
+ def rgb?
+ color_info == :rgb
+ end
+
+ def gray?
+ color_info == :gray
+ end
end