Sha256: 92c2ef883203f642e6f8549ef60cb7b89e9d49fbb6a6c9ada3c25ff6e7103c6f

Contents?: true

Size: 219 Bytes

Versions: 7

Compression:

Stored size: 219 Bytes

Contents

module Sprite
  class ImageReader
    def self.read(image_filename)
      # avoid loading rmagick till the last possible moment
      require 'rmagick'

      Magick::Image::read(image_filename).first
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
amikula-sprite-0.1.13 lib/sprite/image_reader.rb
amikula-sprite-0.1.12 lib/sprite/image_reader.rb
amikula-sprite-0.1.11 lib/sprite/image_reader.rb
amikula-sprite-0.1.10 lib/sprite/image_reader.rb
amikula-sprite-0.1.9 lib/sprite/image_reader.rb
amikula-sprite-0.1.8.1 lib/sprite/image_reader.rb
amikula-sprite-0.1.8 lib/sprite/image_reader.rb