The PNG reference explicitly recommends a fractional device scale (target_width / viewBox_width, e.g. 1.25) for exact requested pixel sizes, but its Rasterize snippet parses the third argument with int(). The exact snippet fails immediately with ValueError for a valid 1.25; its ordinary scale2 control captures successfully.
Proposed scope: parse finite scale multipliers consistently with the documented 1–4 range, preserve default/integer scales, and add native browser tests that verify exact output dimensions for fractional requested sizes plus invalid argument controls. No extra scaling capability beyond the existing reference, no source diagram change, and no plugin version bump.
Codex is assisting @rudycelekli.
The PNG reference explicitly recommends a fractional device scale (
target_width / viewBox_width, e.g. 1.25) for exact requested pixel sizes, but its Rasterize snippet parses the third argument with int(). The exact snippet fails immediately with ValueError for a valid 1.25; its ordinary scale2 control captures successfully.Proposed scope: parse finite scale multipliers consistently with the documented 1–4 range, preserve default/integer scales, and add native browser tests that verify exact output dimensions for fractional requested sizes plus invalid argument controls. No extra scaling capability beyond the existing reference, no source diagram change, and no plugin version bump.
Codex is assisting @rudycelekli.