Raster to vector and Vector to Raster conversion

We want the some image conversion.

  1. PNG,JPG and JPEG convert to SVG - We have checked with the latest version but conversion with the C# provided code. We have checked on demo sites its working as expected so please share the proper C# code.
  2. EPS to SVG - This conversion is not working with Aspose(dll).
  3. SVG to CMYK PDF with ICC color profile

@lukeshbhave14

Would you kindly share the sample files for every case along with the sample code snippets that you have tried at your end? We will test the scenario in our environment and address it accordingly.

here is the code of PNG,JPG and JPEG convert to SVG

var vectorizer = new ImageVectorizer
{

            Configuration =
            {
               
                //optionally set path builder
                PathBuilder = new SplinePathBuilder {
                    //optionally set trace smoother
                    TraceSmoother = new ImageTraceSmoother(2),
                    TraceSimplifier= new ImageTraceSimplifier(0.1f)
                    
                },
                
                ColorsLimit = 25

               
        }


        };

// Vectorize an image using the vectorizer
    using (var document = vectorizer.Vectorize(spath))
    {
        document.Save(dpath);
    }

@lukeshbhave14

We are checking it and will get back to you shortly.

Any update on this?

@lukeshbhave14

The online demos and free Apps have the freedom to use multiple Aspose APIs behind one feature. Can you please share the link to the online demo that you tested? We will gather information about the Aspose APIs used behind it and share our feedback with you.

Here is the demo link.

@lukeshbhave14

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): SVGAPP-102

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

Thanks asad.ali

@lukeshbhave14

Based on your inquiry, we have attached the C# project “ImageVectroizationExamples.zip” that demonstrates the conversion/vectorization of PNG, JPG, and BMP files with various parameters. The code snippet for the vectorization process is as follows:

using Aspose.Svg;
using Aspose.Svg.ImageVectorization;
using System;
using System.IO;

// To vectorize files without any restrictions, you should obtain a temporary license
// from the following link: [https://purchase.aspose.com/temporary-license/]. Once you
// have acquired the temporary license, make sure to initialize it in your code. This
// will enable you to perform file vectorization without any limitations.

//var license = new License();
//license.SetLicense(@"path\Aspose.SVG.NET.lic");

RunVectorize("tiger.bmp", 25);
RunVectorize("capture.png", 2, 2);
RunVectorize("fish.jpg", 25, -1, 10, 20, 1.2f);

void RunVectorize(string file, int colorsLimit = 25, int severity = -1, float thresholdError = -1, int maxIterations = -1, float lineWidth = 1)
{
    VectorizeAndSaveToFile(new ImageVectorizer
    {
        Configuration =
                {
                    PathBuilder = new BezierPathBuilder {
                    TraceSmoother = severity != -1 ? new ImageTraceSmoother(severity) : null,
                    ErrorThreshold = thresholdError != -1 ? thresholdError : 30,
                    MaxIterations = maxIterations != -1 ? maxIterations : 30
                    },
                    ColorsLimit = colorsLimit,
                    LineWidth = lineWidth
                }
    }, file);
}

void VectorizeAndSaveToFile(ImageVectorizer vectorizer, string testFile)
{
    using (var document = vectorizer.Vectorize(testFile))
    {
        var resultFile = testFile + ".svg";
        document.Save(resultFile);
        Console.WriteLine(string.Format("Vectorized image was saved to file:{0}", Path.GetFullPath(resultFile)));
    }
}

Aspose.SVG not supporting the conversion of EPS to SVG and the conversion of SVG to CMYK PDF with ICC color profile, we apologize for any confusion caused but we would like to clarify and request the exact reference or provide more information about the apps that offer this functionality.
ImageVectroizationExamples.zip (191.0 KB)

I have checked with above code and its converted raster to vector but still there quality related issue.

@lukeshbhave14

Can you kindly share sample files that you used and faced the quality related issue?