Wrap text
Report abuse
|
|
diff --git a/lib/image_voodoo.rb b/lib/image_voodoo.rb
index 79f8e6f..5b14ee6 100644
--- a/lib/image_voodoo.rb
+++ b/lib/image_voodoo.rb
@@ -303,8 +303,6 @@ class ImageVoodoo
# A top-level image loader opens path and then yields/returns the image.
#
def self.with_image(file)
- readers = ImageIO.getImageReadersBySuffix(File.extname(file)[1..-1])
- raise TypeError, "unrecognized format for #{file}" unless readers.hasNext
image = ImageVoodoo.new ImageIO.read(JFile.new(file))
block_given? ? yield(image) : image
rescue NativeException => ne
|