Sha256: f39d7bef3dd88a21cbae37407f5e343c994952f43338d6bf5c33078cf64ac1bf

Contents?: true

Size: 252 Bytes

Versions: 16

Compression:

Stored size: 252 Bytes

Contents

module ImageCreation
  def create_image(path, options={})
    options[:size] ||= '10x10'
    convert = Bulldog::Processor::ImageMagick.convert_path
    system(convert, '-geometry', "#{options[:size]}!", 'pattern:checkerboard', path)
    path
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
bulldog-0.2.4 spec/helpers/image_creation.rb
bulldog-0.2.3 spec/helpers/image_creation.rb
bulldog-0.2.2 spec/helpers/image_creation.rb
bulldog-0.2.1 spec/helpers/image_creation.rb
bulldog-0.2.0 spec/helpers/image_creation.rb
bulldog-0.1.1 spec/helpers/image_creation.rb
bulldog-0.1.0 spec/helpers/image_creation.rb
bulldog-0.0.15 spec/helpers/image_creation.rb
bulldog-0.0.14 spec/helpers/image_creation.rb
bulldog-0.0.13 spec/helpers/image_creation.rb
bulldog-0.0.12 spec/helpers/image_creation.rb
bulldog-0.0.11 spec/helpers/image_creation.rb
bulldog-0.0.10 spec/helpers/image_creation.rb
bulldog-0.0.9 spec/helpers/image_creation.rb
bulldog-0.0.8 spec/helpers/image_creation.rb
bulldog-0.0.7 spec/helpers/image_creation.rb