When I try to copy the properties of an Image object on docker and UNIX I get the following error: SetPropertyItem throw an exception with the message Property is not supported. On Windows there is no error.
A short snippet from my code:
var newImage = new Bitmap(newWidth, newHeight);
foreach (var propItem in image.PropertyItems) //https://docs.microsoft.com/en-us/dotnet/api/system.drawing.image.propertyitems?view=dotnet-plat-ext-5.0)
{
newImage.SetPropertyItem(propItem); // https://docs.microsoft.com/en-us/dotnet/api/system.drawing.image.setpropertyitem?view=dotnet-plat-ext-5.0
}
Hi,
When I try to copy the properties of an
Image
object on docker and UNIX I get the following error:SetPropertyItem throw an exception with the message Property is not supported
. On Windows there is no error.A short snippet from my code:
edit: found the following issue thread, https://github.com/dotnet/runtime/issues/46410