lib/grim/image_magick_processor.rb in grim-1.3.3 vs lib/grim/image_magick_processor.rb in grim-1.3.4

- old
+ new

@@ -13,10 +13,10 @@ @ghostscript_path = options[:ghostscript_path] || DefaultGhostScriptPath @original_path = ENV['PATH'] end def count(path) - command = [@ghostscript_path, "-dNODISPLAY", "-q", + 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