def splash_start
      icon_size = size.min / 5
      img.resize icon_size if img.dimensions.max >= icon_size
      img.combine_options do |o|
        o.gravity 'center'
        o.background bg if bg
        o.extent size.join('x') # "WxH"
      end
    end
def splash_start
      icon_size = size.min / 5
      img.resize icon_size if img.dimensions.max >= icon_size
      img.combine_options do |o|
        o.gravity 'center'
        o.background bg if bg
        o.extent size.join('x') # "WxH"
      end
    end
Splash

 Splash.new(src, size, rounded).image
 Image class

 Icon.new(src, size, rounded).image('.path.ext')
 Export image


 Center image