Skip to content

Conversation

@semiversus
Copy link
Contributor

This small pull-requests solves a problem when SVG are drawn with DPI scaling factor != 1.0 and tiny-skia. The problem is described in #2825.

In the draw_image function of Engine (in tiny_skia/src/engine.rs) the variable pyhsical_bounds is used, but it should be *bounds (same as in the Image:Raster arm).

                self.vector_pipeline.draw(
                    &svg.handle,
                    svg.color,
                    physical_bounds,  // <- *bounds is expected
                    svg.opacity,
                    _pixels,
                    transform,
                    clip_mask,
                );

@semiversus
Copy link
Contributor Author

Closed in favor of #2954

@semiversus semiversus closed this May 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant