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

Handle optional param to resize rasterized image if too large #42

Merged
merged 1 commit into from
Dec 11, 2023

Conversation

donaldgray
Copy link
Member

New param: PDF_RASTERIZER_MAX_LENGTH. If not set behaviour unchanged. If set to a value, after rasterizing, each image is checked to see if it exceeds this size in any dimension. If it does image is resized maintaining aspect ratio.

Also added a logging check for 1x1 pixel rasterized image, which was observed with very large images at higher DPI. This will require a further fix but added a log for now.

@donaldgray donaldgray merged commit 010dc0c into main Dec 11, 2023
1 check passed
@donaldgray donaldgray deleted the feature/set_dpi branch December 11, 2023 10:58
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.

3 participants