Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Control the size of the images #47

Open
cboulanger opened this issue May 26, 2021 · 3 comments
Open

Control the size of the images #47

cboulanger opened this issue May 26, 2021 · 3 comments
Labels
question Further information is requested

Comments

@cboulanger
Copy link

Hi: Is it possible to set a specific size of the image? I have size information from OCR and in my use case, the size must conform to the OCR information. Thank you.

@k-yle k-yle added the question Further information is requested label Jun 11, 2021
@k-yle
Copy link
Owner

k-yle commented Jun 11, 2021

Hi, sorry for the delayed reply. There isn't an easy way to achieve this, unless you know the input dimensions, and the input has the same aspect-ratio as the output. Then you can use the scale option (see the README)

@cboulanger
Copy link
Author

cboulanger commented Jun 11, 2021

Thank you for your reply. The issue was solved by a change in the software into which I feed the result of pdf-to-img. You can close the issue, but maybe for the record: I take it that the scale factor accepts non-integer values so that the scaling can be done in a fine-grained way?

@k-yle
Copy link
Owner

k-yle commented Jun 11, 2021

yes that's correct :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants