Permalink
Browse files

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

  • Loading branch information...
jashkenas committed Aug 3, 2010
1 parent 97aacd3 commit af26b9ab68040020b397a0d7bc6e521fc68b0826
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit af26b9a

Please sign in to comment.