Sharpness of SVG render fluctuates with size of View
See original GitHub issueThe sharpness of SVG rendering depends on the size of the CachedImage.
Otherwise SVG rendering is working well in my initial tests.
Steps to Reproduce
Take an svg with some detail that will show sharpness (e.g. text). Create a CachedImage. Vary the size of the CachedImage (width and height). Each time, load the svg.
Expected Behavior
Sharp at all resolutions, always rendering at the actual resolution.
Actual Behavior
For some sizes the render is sharp, and for others it is blurred. Changing the View size by a single pixel can have a large effect on sharpness. The blur is what you would expect from an image rendered at a close but different resolution and then resized, about a 0.5 pixel blur effect.
The sharpness or blur is always constant throughout each render, only varying with the size of the View.
Basic Information
- Version with issue: 2.3.4
- Platform: UWP
Reproduction Link / Code
let svgV = FFImageLoading.Forms.CachedImage(FadeAnimationEnabled = Nullable<bool>(false))
do svgV.SizeChanged.Add(fun _ ->
svgV.Source <- FFImageLoading.Svg.Forms.SvgImageSource.FromSvgString(svgString))
Issue Analytics
- State:
- Created 6 years ago
- Comments:17 (7 by maintainers)
I made some changes, please let me know if it solved in upcoming release.
I made it by using
Margin
instead ofWidthRequest
, andHeightRequest