{"action":"closed","issue":{"url":"https://api.github.com/repos/jbarlow83/OCRmyPDF/issues/262","repository_url":"https://api.github.com/repos/jbarlow83/OCRmyPDF","labels_url":"https://api.github.com/repos/jbarlow83/OCRmyPDF/issues/262/labels{/name}","comments_url":"https://api.github.com/repos/jbarlow83/OCRmyPDF/issues/262/comments","events_url":"https://api.github.com/repos/jbarlow83/OCRmyPDF/issues/262/events","html_url":"https://github.com/jbarlow83/OCRmyPDF/issues/262","id":318206511,"number":262,"title":"--remove-background error on PDF","user":{"login":"jmrichardson","id":6565528,"avatar_url":"https://avatars3.githubusercontent.com/u/6565528?v=4","gravatar_id":"","url":"https://api.github.com/users/jmrichardson","html_url":"https://github.com/jmrichardson","followers_url":"https://api.github.com/users/jmrichardson/followers","following_url":"https://api.github.com/users/jmrichardson/following{/other_user}","gists_url":"https://api.github.com/users/jmrichardson/gists{/gist_id}","starred_url":"https://api.github.com/users/jmrichardson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmrichardson/subscriptions","organizations_url":"https://api.github.com/users/jmrichardson/orgs","repos_url":"https://api.github.com/users/jmrichardson/repos","events_url":"https://api.github.com/users/jmrichardson/events{/privacy}","received_events_url":"https://api.github.com/users/jmrichardson/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-26T21:39:58Z","updated_at":"2018-04-28T00:31:17Z","closed_at":"2018-04-28T00:31:17Z","author_association":"NONE","body":"Hi, I received this error with command \"ocrmypdf --deskew --clean --remove-background --skip-text\"\r\n\r\n```\r\nStarting OCR: 01 Transfer Sheets- EMS Reports.pdf\r\n   INFO -    1: page already has text! – skipping all processing on this page\r\n  ERROR - Traceback (most recent call last):\r\n  File \"/usr/local/lib/python3.6/dist-packages/ruffus/task.py\", line 751, in run_pooled_job_without_exceptions\r\n    register_cleanup, touch_files_only)\r\n  File \"/usr/local/lib/python3.6/dist-packages/ruffus/task.py\", line 567, in job_wrapper_io_files\r\n    ret_val = user_defined_work_func(*params)\r\n  File \"/usr/local/lib/python3.6/dist-packages/ocrmypdf/pipeline.py\", line 537, in preprocess_remove_background\r\n    leptonica.remove_background(input_file, output_file)\r\n  File \"/usr/local/lib/python3.6/dist-packages/ocrmypdf/leptonica.py\", line 560, in remove_background\r\n    pix = pix.background_norm(tile_size=tile_size).gamma_trc(\r\n  File \"/usr/local/lib/python3.6/dist-packages/ocrmypdf/leptonica.py\", line 440, in background_norm\r\n    smooth_kernel[1]\r\n  File \"/usr/local/lib/python3.6/dist-packages/ocrmypdf/leptonica.py\", line 98, in __exit__\r\n    raise LeptonicaError(leptonica_output)\r\nocrmypdf.leptonica.LeptonicaError: Error in pixGetBackgroundGrayMap: pixs is colormapped\r\nWarning in pixBackgroundNorm: map not made; return a copy of the source\r\n```\r\n\r\nHowever,  this command worked \"ocrmypdf --deskew --clean --skip-text\"\r\n\r\nSorry, I am unable to provide the PDF.  Is there anything I can do to test or fix?"}}
{"actor":{"display_login":"jbarlow83"}}