Skip to content

Commit

Permalink
Merge pull request #253 from ifad/feature/modernize-convert-params
Browse files Browse the repository at this point in the history
Replace `+matte` with `-alpha off`
  • Loading branch information
tagliala authored Sep 12, 2024
2 parents 9416507 + 4279839 commit 3c57b28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/heathen/task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ def task_key action, mime_type
end

Heathen::Task.register 'ocr', 'image/.*' do
convert_image to: :tiff, params: '-depth 8 -density 300 -background white +matte'
convert_image to: :tiff, params: '-depth 8 -density 300 -background white -alpha off'
job.reset_content_file!
tesseract format: 'pdf'
end

Heathen::Task.register 'ocr_text', 'image/.*' do
convert_image to: :tiff, params: '-depth 8 -density 300 -background white +matte'
convert_image to: :tiff, params: '-depth 8 -density 300 -background white -alpha off'
job.reset_content_file!
tesseract format: nil
end
Expand Down

0 comments on commit 3c57b28

Please sign in to comment.