-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Pdf renderer isn't working with jpg input images #122
Comments
@rmtheis just got it working. Compiled libjpeg wrong. Now I've compiled tess-two with libjpeg and it's working! Isn't it an idea to bundle libjpeg by default with tess-two? Final leptonica Android.mk
Libjpeg Android.mk
|
Cool--thanks for the follow-up. I'm glad to hear that adding libjpeg built and worked for you. Yes I do think it should be added back in. |
Ok should be nice when libjpeg is in the project. Saw you're using android's external png library. |
@ArjanSchouten I don't understand how having libjpeg would help resolve this specific problem. But libjpeg has been added to the project and it lets you do some cool stuff generally so I think it's a good addition. |
My input image was a color jpg image. You have created a fallback when the image isn't read by leptonica. However this returns a greyscale bitmap. To be able to read a jpg by leptonica you need libjpeg. I'm sorry that I hadn't enough time to send a PR with libjpeg. |
When I put a jpg wiith 24 bit depth into the pdf renderer the output is a corrupt pdf file. The text is still present in the file however the image is not present. Is this a known issue? Is this because libjpeg is not present?
I tried to compile tess-two with libjpeg with the following make file:
I changed the leptonica make file to:
I can't find that jpg's are not supported by tesseract. However I'm not sure if libjpeg is needed for this. Do I need libjpeg for this and if yes can't we include it into tess-two?
I asked this question also on stackoverflow: http://stackoverflow.com/questions/33394810/tesseract-pdf-renderer-with-24-bit-depth-jpg-image
The text was updated successfully, but these errors were encountered: