Skip to content

How do I grayscale my documentfile? #64

Answered by felixdittrich92
DJay921 asked this question in Q&A
Discussion options

You must be logged in to vote

So under the hood every image is resized to 1024x1024 by keeping the aspect ratio and symmetric padding (If not changed by the users args).

Especially with assume_straight_pages=False you have following options:

disable_crop_orientation=True: If your images doesn't contain vertical rotated text elements - huge speed-up
disable_page_orientation=True: If your images are maximum by -90 - 90 degrees rotated - small speed-up

Additional there is also the option for straighten_pages=True

It does really depend on the documents you want to process which combination works best for you :)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@DJay921
Comment options

@felixdittrich92
Comment options

Answer selected by DJay921
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants