SVG icon indicating copy to clipboard operation
SVG copied to clipboard

macOS renders in PARG8, composites in ARGB8

Open bloodwiing opened this issue 4 years ago • 0 comments

I am having issues with SVG on macOS.

The rendered SVGs are pre-multiplied (as in, the less opaque the pixel is, the more black it is), when they're used as if they were not.

I get that PARGB is better and easier for GPUs to composite, but when the image is rendered as a PARGB and composited as a ARGB, it really just makes it look off.

Here's a comparison:

Windows view: macOS view:

Versions:

SVG 3.3.0 System.Drawing.Common 5.0.2

I have a macOS VM, but it's not the most elegant OS to be emulated... Reproducing is possible, but my own setup is quite a few steps. (No Developer ID, so either dotnet run or ~20 popups about DLLs being blocked from running)

bloodwiing avatar Oct 15 '21 19:10 bloodwiing