Skip to content

Music sheet SVG displays brokenΒ #1767

@KamilDev

Description

@KamilDev

Magick.NET version

v14.2.0 Magick.NET-Q16-AnyCPU

Environment (Operating system, version and so on)

Windows 11

Description

The following music sheet SVG displays broken:
music-sheet

When displayed using Magick.NET:
image

When displayed using a different library such as Svg.Skia or SharpVectors, it's displayed correctly.

Steps to Reproduce

  1. Download the music-sheet.svg
  2. Display it using Magick. For example:
 public void DisplaySvg(string svgPath)
 {
     using (var image = new MagickImage(svgPath))
     {
         // Convert to PNG for display
         var memoryStream = new MemoryStream();
         image.Write(memoryStream, MagickFormat.Png);
         memoryStream.Position = 0;

         var bitmap = new BitmapImage();
         bitmap.BeginInit();
         bitmap.CacheOption = BitmapCacheOption.OnLoad;
         bitmap.StreamSource = memoryStream;
         bitmap.EndInit();
         bitmap.Freeze();

         SvgImage.Source = bitmap;
         DropHint.Visibility = Visibility.Collapsed;
     }
 }

Full project here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions