Sha256: 9947dee64d258c90fc25b4cae6af5641a5e69b6c27e27b741dd37f86b4274721

Contents?: true

Size: 255 Bytes

Versions: 6

Compression:

Stored size: 255 Bytes

Contents

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bulldog-0.0.6 spec/helpers/image_creation.rb
bulldog-0.0.5 spec/helpers/image_creation.rb
bulldog-0.0.3 spec/helpers/image_creation.rb
bulldog-0.0.4 spec/helpers/image_creation.rb
bulldog-0.0.2 spec/helpers/image_creation.rb
bulldog-0.0.1 spec/helpers/image_creation.rb