We are seeing the same thing with the .Net framework, v24.1.0. I have not tried earlier versions. This ALSO happened using groupdocs.cloud to test this graphic on line (Online file conversion | Free GroupDocs Apps). Just spins.
Using Visual Studio .Net framework 4.6.2. Found it with this file, trying to convert to PNG and TIF:
It hangs on .Convert.
I changed the graphic in inkscape and saved it, then conversion worked fine. Other graphics were able to convert to png or tif, so it’s more of the source, not the destination (I’m guessing). Acting like an infinite loop.
Here’s a code snippet:
// Create a converter
using (Converter converter = new Converter(source_file_name_with_path))
{
// Get all available supported conversions for the specified file
PossibleConversions conversions = converter.GetPossibleConversions();
// Convert the image file to a supported image format
if (conversions.All.Any())
{
TargetConversion target_conversion = conversions[output_extension];
// Convert the file, if there are supported conversion options
if (target_conversion != null)
{
ConvertOptions convert_options = target_conversion.ConvertOptions;
// Delete file in case it exists
Files.DeleteFile(output_file_name_with_path);
// It hangs here!
converter.Convert(output_file_name_with_path, convert_options);
}
}
}