-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
docx: use proper DPI for fallback PNG #9288
base: main
Are you sure you want to change the base?
Commits on Dec 27, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 4aef107 - Browse repository at this point
Copy the full SHA 4aef107View commit details -
log(svgToPng): log calls to rsvg-convert with --trace
Signed-off-by: Edwin Török <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0c88562 - Browse repository at this point
Copy the full SHA 0c88562View commit details -
refactor(svgToPng): introduce PandocMonad.svgToPng
This will be needed to run the conversion inside the PandocMonad, where we know the desired image size. The arguments are: (dpi, width, height). The width and height is optional to more easily convert existing code. [API change] Signed-off-by: Edwin Török <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 682f972 - Browse repository at this point
Copy the full SHA 682f972View commit details -
fix(docx): use proper DPI when creating fallback images
Introduce getOrCreateFallback, and pass the desired size in points to rsvg-convert. Otherwise it'll guess the size based on the SVG's viewbox and completely ignore the DPI argument. Signed-off-by: Edwin Török <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0f45ea1 - Browse repository at this point
Copy the full SHA 0f45ea1View commit details -
test(docx): add PNG fallback generation test for SVG
Just look at --trace output. Can't use a golden test because the actual .png will be different depending on rsvg-convert version. Signed-off-by: Edwin Török <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d56f9bb - Browse repository at this point
Copy the full SHA d56f9bbView commit details -
fix(docx): honour percentage widths for SVG images
Signed-off-by: Edwin Török <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 438a451 - Browse repository at this point
Copy the full SHA 438a451View commit details -
Configuration menu - View commit details
-
Copy full SHA for 39cc916 - Browse repository at this point
Copy the full SHA 39cc916View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1e2dbf9 - Browse repository at this point
Copy the full SHA 1e2dbf9View commit details