We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Aspose.Imaging - SVG to DXG Conversion - Image.Save() Infinite Wait

We recently purchased Aspose.Imaging, and utilize version 22.5.0. For most of the conversion images are are successfully able to produce a DXF file. We do however have a few edge cases that are causing the synchronous call to image.Save(outputFilePath, exportOptions) to never return a response for particular SVG images. Here is a sample SVG we are having issues with: https://customops-staging.s3.amazonaws.com/auto/135f5992-57e7-4b7d-ab37-423c0f6e64a1/rambler-tumbler-20oz-white/front/autoimage/1652208062739/art.svg

Are settings are below:
var widthInPixels = 600 * 1800;
var heightPixels = 600 * 1500;

            var exportOptions = new DxfOptions()
            {
                TextAsLines = true,
                ConvertTextBeziers = true,
                FullFrame = true,
                VectorRasterizationOptions = new SvgRasterizationOptions()
                {
                    PageWidth = (float)widthInPixels,
                    PageHeight = (float)heightPixels,
                    FullFrame = true,
                    Positioning = PositioningTypes.DefinedByDocument,
                    CenterDrawing = true,
                    BackgroundColor = Color.Transparent                        
                }
            };

image.Save(outputFilePath, exportOptions);

Within the output folder there is a DXF file created with 0 KB.

Are there any settings that we can change to produce the DXF successfully? Or why is there never a response from the method. Is there not a max timeout, or is it faulting somewhere?

@MDownum
We’ve created the tickets IMAGINGNET-5498 to address the issue in the next releases.