Repository navigation
gui: user-settable PDF render DPI - #485
Merged
Merged
Conversation
A PDF pair too big for the raster caps at the chosen DPI now renders at the highest whole DPI that fits, with a warning naming the DPI used, the page and the cap. Below 72 DPI it still fails loud. etchy-pdf gains page_point_dims and pixel_dims_at so the fit is sized from one parse. Refs #223
Changing the DPI re-rendered the pair through the full reset, so the view jumped to the first changed page, zoomed out. Keep the selected page (matched by old/new page number), the camera and the rulers. The canvas world is nm, so the same camera frames the same spot at any DPI and needs no scaling. Check the page limit before fitting the DPI, so an over-long document gets the page-limit message, and fix a comment that over-claimed the setting always matches the view after a failed re-render. Refs #223
# Conflicts: # CHANGELOG.md
etchy — PCB diff10 of 13 layer(s) changed · +213.2964 mm² added · −448.7004 mm² removed · 967+/863− regions
top-copper — largest changed regions (top 10)
inner-copper1 — largest changed regions (top 10)
inner-copper2 — largest changed regions (top 10)
bottom-copper — largest changed regions (top 10)
top-mask — largest changed regions (top 10)
bottom-mask — largest changed regions (top 10)
bottom-silk — largest changed regions (top 10)
bottom-paste — largest changed regions (top 10)
drill-npth — largest changed regions (top 10)
drill — largest changed regions (top 10)
drill-npth — drill table
drill — drill table
Layer images: etchy-diff-d16eda25cfccdba6 has one overlay SVG per changed layer (00-top-copper, 01-inner-copper1, 02-inner-copper2, 03-bottom-copper, 04-top-mask, 05-bottom-mask, 07-bottom-silk, 09-bottom-paste, 10-drill-npth, 11-drill) and the HTML report. Removed is red, added is green. |
# Conflicts: # CHANGELOG.md
# Conflicts: # CHANGELOG.md # crates/etchy-gui/src/main.rs
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.
Adds a PDF render DPI setting in Settings > Diff. Changing it re-renders the open PDF pair.
Refs #223