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

A switch to set dpi for images w/o dpi information. #52

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ksmigrod
Copy link

I've been creating pdf's from portable bitmaps, but I couldn't set resolution. I've added a switch to set resolution, currently it sets dpi if original image has no dpi information.

strcmp(argv[i], "--dpi") == 0) {
char *endptr;
long t_dpi = strtol(argv[i+1], &endptr, 10);
if (*endptr) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like the indentation of this section got screwed up, but the patch looks nice (not yet tested), since it would avoid having waste time (and space) to convert bazillion pages to an intermediary format just to set the DPIs (and let leptonica decode all the images that were coded into the intermediate format).

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

Successfully merging this pull request may close these issues.

None yet

2 participants