lib/grim/image_magick_processor.rb
# ghostscript prints out a warning, this regex matches it
ghostscript prints out a warning, this regex matches it
ghostscript prints out a warning this regex matches it
def count(path)
      command = [@ghostscript_path, "-dNODISPLAY", "-dNOSAFER", "-q",
        "-sFile=#{Shellwords.shellescape(path)}",
        File.expand_path('../../../lib/pdf_info.ps', __FILE__)]
      result = `#{command.join(' ')}`
      result.gsub(WarningRegex, '').to_i
    end
def count ( path ) command = [ @ghostscript_path , "-dNODISPLAY" , "-dNOSAFER" , "-q" , "-sFile=#{Shellwords.shellescape(path)}" , File . expand_path ( '../../../lib/pdf_info.ps' , __FILE__ ) ] result = ` #{ command . join ( ' ' ) } ` result . gsub ( WarningRegex , '' ) . to_i end
ghostscript prints out a warning, this regex matches it
ghostscript prints out a warning this regex matches it
path
<not_specific>