slide_share_kit.rb
# control image file format. 
# if file format unsupported download it again with os supported
control image file format.
if file format unsupported download it again with os supported
control image file format . if file format unsupported download it again with os supported
def control_images(file, link)
    @log.info "#{file} controlling..."
    unless FastImage.type(file)
      @log.error "#{file} unsupported!!!"
      @log.info  "#{file} downloading with os support(curl)..."
      system "curl #{link} > '#{file}' 2>/dev/null" 
    end
    @log.info "#{file} controlled..."
  end
def control_images ( file , link ) @log . info "#{file} controlling..." unless FastImage . type ( file ) @log . error "#{file} unsupported!!!" @log . info "#{file} downloading with os support(curl)..." system "curl #{link} > '#{file}' 2>/dev/null" end @log . info "#{file} controlled..." end
control image file format.
control image file format .
file
link