Class: MakeIcon::Helper::AppiconHelper

Inherits:
Object
  • Object
show all
Defined in:
lib/makeicon.rb

Class Method Summary collapse

Class Method Details

.check_input_image_size(image, size) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/makeicon.rb', line 6

def self.check_input_image_size(image, size)
  puts "Minimum width of input image should be #{size}" if image.width < size
  puts "Minimum height of input image should be #{size}" if image.height < size
  puts "Input image should be square" if image.width != image.height
  # UI.user_error!("Minimum width of input image should be #{size}") if image.width < size
  # UI.user_error!("Minimum height of input image should be #{size}") if image.height < size
  # UI.user_error!("Input image should be square") if image.width != image.height
end