Skip to content

SetClippingPath method doesn't work #492

@hn24

Description

@hn24

Prerequisites

  • I have written a descriptive issue title
  • I have verified that I am using the latest version of Magick.NET
  • I have searched open and closed issues to ensure it has not already been reported

Description

Hi @dlemstra ,
I'm working with the SetClippingPath function. It's seem not work at this time.
Could you please help me to take a look at it?

Thanks

Steps to Reproduce

The step to reproduce is very simple:

  1. Get my tif file and svg file from images.zip
  2. Use this code to write the clipping path from svg to the tiff, then write it
using (var image = new MagickImage('input.tif'))
{
    image.SetClippingPath( File.ReadAllText(@"input.svg"), "Path 2");
    image.Write("output.tif", MagickFormat.Tiff);
}
  1. Open this file again, you can see the it's missing the new clipping path
using (var image = new MagickImage("output.tif"))
{
    var clippingPath = image.GetClippingPath("Path 2");
}

System Configuration

  • Magick.NET version: Magick.NET-Q8-x64 v7.14.1.0
  • Environment: Windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions