James R. Barlow
d30a879e2d
Fix test suite by running select_image_for_pdf unconditionally
...
The purpose of this change that caused the problem was a minor
optimization for the tesseract renderer path that had it pull an image
from select_image_for_pdf so that it could use a JPEG instead of PNG,
instead of taking it from preprocess_clean where it would only get a PNG
and make large files.
2016-02-08 02:33:03 -08:00
James R. Barlow
b907234d5c
Update tesseract spoofing to cache orientation and script detection checks
...
No cache: 269 s
With cache: 144 s
test_oversample[tesseract] now fails, all others good
2016-02-08 02:21:56 -08:00
James R. Barlow
b0114c9174
More logging improvements
2016-02-08 01:31:15 -08:00
James R. Barlow
d2ba8c501f
Restore invisibletext for normal output
2016-02-08 01:14:39 -08:00
James R. Barlow
6a7ed7d359
Make logging output a lot more useful
2016-02-08 00:58:14 -08:00
James R. Barlow
6289afa1a6
Better: custom logging factory to avoid whatever ruffus is doing
2016-02-08 00:18:52 -08:00
James R. Barlow
9bb6fa04cb
Return logging to a semblance of normalcy
2016-02-08 00:09:31 -08:00
James R. Barlow
afb6f6f5c9
Render preview as .jpg instead of .png
...
Smaller file size of JPEG seems to help performance, although the
difference is only about 1%.
2016-02-07 15:49:10 -08:00
James R. Barlow
8a69671dbd
Suppress debug message
2016-02-07 15:43:57 -08:00
James R. Barlow
178aee4687
Make rotation optional (for now it's off, possibly should be on)
2016-02-07 15:43:45 -08:00
James R. Barlow
8484caddfb
Tweak pipeline, allowing --pdf-renderer to use JPEGs instead of PNGs
2016-02-07 15:36:51 -08:00
James R. Barlow
08313316de
Cleanup auto-rotation
2016-02-07 15:06:54 -08:00
James R. Barlow
1d0eca5c63
All four rotation directions working
2016-02-07 06:09:01 -08:00
James R. Barlow
fe89232a30
Fix autorotate for some lossless cases
2016-02-07 05:59:46 -08:00
James R. Barlow
4b51b521e2
Implement autorotate (provided lossless reconstruction is disabled)
...
Works for a single page file, probably
Although arguably rotation is not quite lossless, and the two could be
mutually exclusive anyway, so maybe this is it. Did not check in some
debugging changes (lossless=False, text debugging=True)
PyPDF seems to get merging wrong when one of the pages is rotated.
2016-02-07 03:27:33 -08:00
James R. Barlow
e9ec458304
tesseract: add command to access OSD values
2016-02-07 03:21:32 -08:00
James R. Barlow
54b0ddd787
ghostscript: don't try to "help" autorotation
...
It uses text direction alone -- unreliable guide.
2016-02-07 03:20:42 -08:00
jbarlow83
93bec22f9c
README: mention polyglot, fix container vs image
2016-02-07 00:32:20 -08:00
James R. Barlow
0dc96442d8
Fix img2pdf usage in test case (to make Travis CI happy again)
2016-02-06 23:41:32 -08:00
James R. Barlow
58f4582517
More Dockerfile repair
...
I'm not fully happy with this arrangement, as it effectively downloads
OCRmyPDF twice, not to mention the lengthy setup time overall.
Will need to try separate build/run images in the future, but now just
get it working again.
2016-02-06 23:13:16 -08:00
James R. Barlow
2d15c09cca
Merge branch 'develop'
2016-02-06 18:18:49 -08:00
James R. Barlow
04cb8865b0
Fetch application from PyPI instead of local
...
setuptools_scm barfs because it can't find the version, because Docker hub
retrieves the application from Github in a way that omits the necessary
details.
I suppose there is a certain logic to Docker only using the tagged
released versions from PyPI, so go with it. The other attractive option
is to nix setuptools_scm.
2016-02-06 18:18:30 -08:00
James R. Barlow
6fe32bbaf7
v3.2.1
v3.2.1
2016-02-05 16:10:18 -08:00
James R. Barlow
4abb20390d
Bump Dockerfile versions
2016-02-05 16:08:26 -08:00
James R. Barlow
daa3916430
Fix img2pdf 0.2 usage
...
All tests pass when forced to rely on img2pdf, so seems okay
2016-02-05 15:13:26 -08:00
James R. Barlow
e9b87cefcc
Try img2pdf 0.2
2016-02-05 14:38:37 -08:00
James R. Barlow
60593b5ad3
Tighten up package requirements to deal with incompatible img2pdf 0.2 release
2016-02-05 14:37:05 -08:00
James R. Barlow
f708b11ea4
Fix Python 2.7 warning
2016-02-05 02:34:49 -08:00
James R. Barlow
7982f58b2e
Try tweaking Dockerfile for automated build again
v3.2.post2
2016-02-05 01:38:59 -08:00
James R. Barlow
e805c1908a
Minor fix for Dockerfile polyglot
v3.2.post1
2016-02-05 00:52:27 -08:00
James R. Barlow
cb3ba8e973
Merge branch 'release/v3.2' into develop
2016-02-05 00:10:41 -08:00
James R. Barlow
344fc40cbc
Merge branch 'release/v3.2'
v3.2
2016-02-05 00:10:41 -08:00
James R. Barlow
7e5c37137b
Merge branch 'develop' into release/v3.2
2016-02-04 23:42:06 -08:00
James R. Barlow
1aae11714b
Update release notes for v3.2
2016-02-04 23:41:33 -08:00
James R. Barlow
d82f14a7aa
Update .gitignore
2016-02-04 18:51:41 -08:00
James R. Barlow
4b65e0b093
Set JPEG output quality to 95 for better transcoding
2016-02-04 18:49:09 -08:00
James R. Barlow
43b0faa830
Bug in tesseract_noop spoof: produced wrong page sizes
...
Now checks input image to ensure the implied page size of its .hocr file
matches the rest of the PDF.
2016-02-04 18:48:22 -08:00
James R. Barlow
8674c9fb20
Merge commit 'ccfbb54e8c26784e438ba2fcac2179f21e7d857b' into release/v3.2
2016-02-04 17:39:36 -08:00
jbarlow83
ccfbb54e8c
Update release notes for v3.2
...
Fix the notes
2016-02-04 17:37:30 -08:00
James R. Barlow
9893ebf889
Suppress tesseract argument printout
2016-02-04 17:26:36 -08:00
James R. Barlow
303eb3e93a
Merge commit 'ca546d70e5bff9e9b115371f7813f3c326822bd8' into release/v3.2
2016-02-04 17:25:56 -08:00
jbarlow83
ca546d70e5
Merge pull request #45 from spwhitton/hocrtransform-shebang-fix
...
fix shebang in hocrtransform.py
2016-02-04 17:21:33 -08:00
Sean Whitton
6a5ea2d64a
fix shebang in hocrtransform.py
2016-02-03 17:48:35 -07:00
James R. Barlow
bacbcba58a
Merge branch 'release/v3.2-rc1'
v3.2rc1
2016-01-19 16:58:37 -08:00
James R. Barlow
52e8aa434f
Update release notes for v3.2-rc1
2016-01-19 16:49:49 -08:00
James R. Barlow
37c508f3f8
Better versioning: no silly version files, but wrong ver in development
...
Small price to pay.
2016-01-19 16:07:52 -08:00
James R. Barlow
26e36422cc
More fiddling with version
2016-01-19 15:07:21 -08:00
James R. Barlow
f82cb002bc
Try automatic versioning with setuptools_scm
2016-01-19 13:27:18 -08:00
James R. Barlow
c1eb047a4b
Fix name of pdfa_def.ps
...
Used to include a copy of the parent dir's name.
2016-01-19 13:11:03 -08:00
James R. Barlow
626ca18f5c
Remove stale comment
2016-01-19 13:02:35 -08:00