{"action":"created","issue":{"url":"https://api.github.com/repos/jbarlow83/OCRmyPDF/issues/293","repository_url":"https://api.github.com/repos/jbarlow83/OCRmyPDF","labels_url":"https://api.github.com/repos/jbarlow83/OCRmyPDF/issues/293/labels{/name}","comments_url":"https://api.github.com/repos/jbarlow83/OCRmyPDF/issues/293/comments","events_url":"https://api.github.com/repos/jbarlow83/OCRmyPDF/issues/293/events","html_url":"https://github.com/jbarlow83/OCRmyPDF/issues/293","id":359537668,"node_id":"MDU6SXNzdWUzNTk1Mzc2Njg=","number":293,"title":"file size increase for pdf/a","user":{"login":"femifrak","id":6538158,"node_id":"MDQ6VXNlcjY1MzgxNTg=","avatar_url":"https://avatars2.githubusercontent.com/u/6538158?v=4","gravatar_id":"","url":"https://api.github.com/users/femifrak","html_url":"https://github.com/femifrak","followers_url":"https://api.github.com/users/femifrak/followers","following_url":"https://api.github.com/users/femifrak/following{/other_user}","gists_url":"https://api.github.com/users/femifrak/gists{/gist_id}","starred_url":"https://api.github.com/users/femifrak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/femifrak/subscriptions","organizations_url":"https://api.github.com/users/femifrak/orgs","repos_url":"https://api.github.com/users/femifrak/repos","events_url":"https://api.github.com/users/femifrak/events{/privacy}","received_events_url":"https://api.github.com/users/femifrak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-09-12T15:33:53Z","updated_at":"2018-09-14T10:36:02Z","closed_at":null,"author_association":"NONE","body":"OCRmyPDF is really marvelous! Thanks!\r\n\r\nI have one question regarding output file size: Unless explicitly selecting pdf as output type, I have quite large file sizes (~4x) after \"ocrmypdf in.pdf out.pdf\". The pages are scanned text, i.e. actually there are no gray pixels only black or white ones. Only \"--output-type pdf\" keeps the file size similar.\r\n\r\nFor the first page (the others are similar) \"pdfimages -list in.pdf\" gives:\r\n\r\n```\r\npage   num  type   width height color comp bpc  enc interp  object ID x-ppi y-ppi size ratio\r\n--------------------------------------------------------------------------------------------\r\n   1     0 image    2697  4533  icc     1   1  ccitt  no        17  0   600   601 88.3K 5.9%\r\n```\r\n\r\nout.pdf results in:\r\n\r\n```\r\npage   num  type   width height color comp bpc  enc interp  object ID x-ppi y-ppi size ratio\r\n--------------------------------------------------------------------------------------------\r\n   1     0 image    2697  4533  rgb     3   8  image  no        12  0   600   601  385K 1.1%\r\n```\r\nEven --optimize 3 results in double file size for out.pdf (saved as pdf/a):\r\n\r\n```\r\npage   num  type   width height color comp bpc  enc interp  object ID x-ppi y-ppi size ratio\r\n--------------------------------------------------------------------------------------------\r\n   1     0 image    2697  4533  gray    1   1  image  no        34  0   600   601  203K  14%\r\n```\r\nIs a conversion obligatory for pdf/a? Or is there a way to keep the original image type AND generate pdf/a? "},"comment":{"url":"https://api.github.com/repos/jbarlow83/OCRmyPDF/issues/comments/421314720","html_url":"https://github.com/jbarlow83/OCRmyPDF/issues/293#issuecomment-421314720","issue_url":"https://api.github.com/repos/jbarlow83/OCRmyPDF/issues/293","id":421314720,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMTMxNDcyMA==","user":{"login":"femifrak","id":6538158,"node_id":"MDQ6VXNlcjY1MzgxNTg=","avatar_url":"https://avatars2.githubusercontent.com/u/6538158?v=4","gravatar_id":"","url":"https://api.github.com/users/femifrak","html_url":"https://github.com/femifrak","followers_url":"https://api.github.com/users/femifrak/followers","following_url":"https://api.github.com/users/femifrak/following{/other_user}","gists_url":"https://api.github.com/users/femifrak/gists{/gist_id}","starred_url":"https://api.github.com/users/femifrak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/femifrak/subscriptions","organizations_url":"https://api.github.com/users/femifrak/orgs","repos_url":"https://api.github.com/users/femifrak/repos","events_url":"https://api.github.com/users/femifrak/events{/privacy}","received_events_url":"https://api.github.com/users/femifrak/received_events","type":"User","site_admin":false},"created_at":"2018-09-14T10:36:02Z","updated_at":"2018-09-14T10:36:02Z","author_association":"NONE","body":"ah, okay,\r\nI am not familiar with github. Should I close this issue and place my wish (convert gray images to monochrome) into pull request? (am not sure what a pull request is.)\r\nOr is this something the owner does?"}}
{"actor":{"display_login":"femifrak"}}