Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

tweaking the unsharp to be as close to the original as possible

  • Loading branch information...
commit af26b9ab68040020b397a0d7bc6e521fc68b0826 1 parent 97aacd3
@jashkenas jashkenas authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/docsplit/image_extractor.rb
View
2  lib/docsplit/image_extractor.rb
@@ -31,7 +31,7 @@ def convert(pdf, size, format, previous=nil)
common = "#{MEMORY_ARGS} #{DENSITY_ARG} #{resize_arg(size)} #{quality_arg(format)}"
if previous
FileUtils.cp(Dir[directory_for(previous) + '/*'], directory)
- cmd = "OMP_NUM_THREADS=2 gm mogrify #{common} -unsharp 0x0.5 \"#{directory}/*.#{format}\" 2>&1"
+ cmd = "OMP_NUM_THREADS=2 gm mogrify #{common} -unsharp 0x0.5+0.75 \"#{directory}/*.#{format}\" 2>&1"
else
cmd = "OMP_NUM_THREADS=2 gm convert +adjoin #{common} \"#{pdf}#{pages_arg}\" \"#{out_file}\" 2>&1"
end
Please sign in to comment.
Something went wrong with that request. Please try again.