Commit 1ec94b0
Remove blanket rasterization skip for images under 2000px
The guard `if x_dims < 2000 and y_dims < 2000: do_rasterization = False`
silently ignored the user's DPI intent — a low-DPI figure should still
trigger downsampling when the source image exceeds the target resolution.
Also re-adds the visual test for #310: at dpi=15 the 512x512 blobs image
is now correctly downsampled to ~96x72, producing visibly pixelated output
that would fail baseline comparison if DPI were overridden to the default.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 8547f01 commit 1ec94b0
2 files changed
Lines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1960 | 1960 | | |
1961 | 1961 | | |
1962 | 1962 | | |
1963 | | - | |
| 1963 | + | |
| 1964 | + | |
| 1965 | + | |
1964 | 1966 | | |
1965 | | - | |
1966 | | - | |
1967 | 1967 | | |
1968 | 1968 | | |
1969 | 1969 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
45 | 55 | | |
46 | 56 | | |
47 | 57 | | |
| |||
0 commit comments