fix(imagemagick): handle multi-page PDF outputs and improve rasterization quality - #593
Open
OrbanGergo wants to merge 2 commits into
Open
fix(imagemagick): handle multi-page PDF outputs and improve rasterization quality#593OrbanGergo wants to merge 2 commits into
OrbanGergo wants to merge 2 commits into
Conversation
OrbanGergo
force-pushed
the
fix/imagemagick-multipage-output
branch
from
July 31, 2026 15:28
625cc9b to
c7e451f
Compare
OrbanGergo
force-pushed
the
fix/imagemagick-multipage-output
branch
from
July 31, 2026 15:30
c7e451f to
69ae4a9
Compare
Contributor
There was a problem hiding this comment.
All reported issues were addressed
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
Contributor
There was a problem hiding this comment.
All reported issues were addressed across 3 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix ImageMagick multi-page PDF conversions by storing the actual generated output filenames instead of assuming a single output file.
ImageMagick generates numbered output files for multi-page PDFs (e.g.
filename-0.png,filename-1.png), but onlyfilename.pngwas stored in the database. As a result, the View and Download actions attempted to access a file that did not exist.Also increase PDF rasterization density to 300 DPI to improve PDF-to-image conversion quality.
Changes
file_namestable.Validation
file_namestable.Closes #541
Closes #340
Summary by cubic
Fix multi-page PDF conversions by saving all ImageMagick outputs and improve PDF-to-image quality with 300 DPI rasterization. This restores working View/Download links per page and produces sharper images.
filename-0.png,filename-1.png) instead of assuming a single output.-density 300forpdfinput to improve rasterization quality.Written for commit ad91743. Summary will update on new commits.