{"action":"created","issue":{"url":"https://api.github.com/repos/tesseract-ocr/tesseract/issues/453","repository_url":"https://api.github.com/repos/tesseract-ocr/tesseract","labels_url":"https://api.github.com/repos/tesseract-ocr/tesseract/issues/453/labels{/name}","comments_url":"https://api.github.com/repos/tesseract-ocr/tesseract/issues/453/comments","events_url":"https://api.github.com/repos/tesseract-ocr/tesseract/issues/453/events","html_url":"https://github.com/tesseract-ocr/tesseract/issues/453","id":185980121,"number":453,"title":"Resolution information in PNG files is ignored","user":{"login":"mbirth","id":130302,"avatar_url":"https://avatars.githubusercontent.com/u/130302?v=3","gravatar_id":"","url":"https://api.github.com/users/mbirth","html_url":"https://github.com/mbirth","followers_url":"https://api.github.com/users/mbirth/followers","following_url":"https://api.github.com/users/mbirth/following{/other_user}","gists_url":"https://api.github.com/users/mbirth/gists{/gist_id}","starred_url":"https://api.github.com/users/mbirth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbirth/subscriptions","organizations_url":"https://api.github.com/users/mbirth/orgs","repos_url":"https://api.github.com/users/mbirth/repos","events_url":"https://api.github.com/users/mbirth/events{/privacy}","received_events_url":"https://api.github.com/users/mbirth/received_events","type":"User","site_admin":false},"labels":[{"id":384803307,"url":"https://api.github.com/repos/tesseract-ocr/tesseract/labels/PDF","name":"PDF","color":"006b75","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-10-28T17:40:50Z","updated_at":"2016-11-24T23:59:36Z","closed_at":null,"body":"As per @jbreiden's comment in #373, here's a problem I noticed with tesseract 3.04.01 (from the Ubuntu Yakkety package).\n\nThis is the original PDF without text as it is created by my scanner: [scanned.pdf](https://github.com/tesseract-ocr/tesseract/files/558983/scanned.pdf)\n\nI've used pdfsandwich with the `-debug` flag to get the intermediate files. The image it uses to feed into tesseract is the tif in this [tif.zip](https://github.com/tesseract-ocr/tesseract/files/558990/tif.zip). And this works just fine. Here's the identify information from that tif:\n\n```\nImage: extractedtif.tif\n  Format: TIFF (Tagged Image File Format)\n  Mime type: image/tiff\n  Class: DirectClass\n  Geometry: 2479x3500+0+0\n  Resolution: 300x300\n  Print size: 8.26333x11.6667\n  Units: Undefined\n  Type: Grayscale\n  Endianess: LSB\n  Colorspace: Gray\n  Depth: 8-bit\n  Channel depth:\n    gray: 8-bit\n```\n\nRunning\n\n```\ntesseract extractedtif.tif outputtif -l deu pdf\n```\n\ngives me a perfectly fine PDF in format: A4, Portrait (210 x 296 mm).\n\n[outputtif.pdf](https://github.com/tesseract-ocr/tesseract/files/559002/outputtif.pdf)\n\nAnd now I converted that tif to png with simply:\n\n```\nconvert extractedtif.tif pngfromtif.png\n```\n\n[png.zip](https://github.com/tesseract-ocr/tesseract/files/559009/png.zip)\n\nThe new png file shows the same resolution information and print size:\n\n```\nImage: pngfromtif.png\n  Format: PNG (Portable Network Graphics)\n  Mime type: image/png\n  Class: PseudoClass\n  Geometry: 2479x3500+0+0\n  Resolution: 300x300\n  Print size: 8.26333x11.6667\n  Units: Undefined\n  Type: Grayscale\n  Endianess: Undefined\n  Colorspace: Gray\n  Depth: 8-bit\n  Channel depth:\n    gray: 8-bit\n```\n\nHowever, running\n\n```\ntesseract pngfromtif.png outputpng -l deu pdf\n```\n\ngives me a PDF in format: 900 × 1270 mm paper size.\n\n[outputpng.pdf](https://github.com/tesseract-ocr/tesseract/files/559004/outputpng.pdf)\n"},"comment":{"url":"https://api.github.com/repos/tesseract-ocr/tesseract/issues/comments/262857470","html_url":"https://github.com/tesseract-ocr/tesseract/issues/453#issuecomment-262857470","issue_url":"https://api.github.com/repos/tesseract-ocr/tesseract/issues/453","id":262857470,"user":{"login":"jbreiden","id":4961958,"avatar_url":"https://avatars.githubusercontent.com/u/4961958?v=3","gravatar_id":"","url":"https://api.github.com/users/jbreiden","html_url":"https://github.com/jbreiden","followers_url":"https://api.github.com/users/jbreiden/followers","following_url":"https://api.github.com/users/jbreiden/following{/other_user}","gists_url":"https://api.github.com/users/jbreiden/gists{/gist_id}","starred_url":"https://api.github.com/users/jbreiden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbreiden/subscriptions","organizations_url":"https://api.github.com/users/jbreiden/orgs","repos_url":"https://api.github.com/users/jbreiden/repos","events_url":"https://api.github.com/users/jbreiden/events{/privacy}","received_events_url":"https://api.github.com/users/jbreiden/received_events","type":"User","site_admin":false},"created_at":"2016-11-24T23:59:36Z","updated_at":"2016-11-24T23:59:36Z","body":"That is a very good idea. Hope I remember once the turkey coma wears off.\r\n"}}
{"actor":{"display_login":"jbreiden"}}