Request a Personalized Demo

Learn how to accurately convert your designs with Scan2CAD

  • Join thousands of happy customers worldwide

How To Convert an Image for Laser Cutting

Updated Sep 30, 2021
laser cutting machine

Any modern maker or manufacturer understands the growing importance of CNC laser engraving and cutting. What was once available as industry-grade tools are now getting released as affordable desktop machines. This makes laser cutting something that can be utilized by a much wider range of users – from large-scale manufacturers to weekend warrior hobbyists.

If you’re looking to get into laser cutting, you’ll have to first learn about how to convert your image files into vector designs that all standard CNC laser programs can handle. Luckily, Scan2CAD is made for just that purpose. In this article, we’ll be taking a look at how to use the program to convert your images into laser-ready files.

The basics of image conversion

raster to vector conversion

Raster to vector conversion Source

When working with any CNC laser cutting machine, it’s standard to use vector file formats such as DXF, DWG, and g-code. Typically, the only way to convert raster images into these types of vector formats is to open them up on CAD software and then trace over them with digital drafting tools. The process can be long and arduous, so automatic conversion software like Scan2CAD comes in really handy in these situations. Scan2CAD can condense hours of tracework into mere seconds by using automatic tracing algorithms to translate raster lines into vector elements. The program can handle a wide range of formats, both as input and output. It can handle such raster format standards such as JPG, TIFF, PNG, BMP, and GIF. It can even handle vector-to-vector conversion, for those times when you need to convert, for example, DWG files into g-code, or vector PDF into editable DXF files.


Short demonstration of Scan2CAD’s raster-to-vector conversion

In this animation, we convert a raster image of a wrench into a vector file of its outline using Scan2CAD.

converting an image of a tool for laser cutting in scan2cad

How do I convert my image into a vector file for laser cutting?

In the following video we convert an image to DXF or G-code for laser cutting. You can try the conversion yourself with the Scan2CAD free trial.

View video transcript

In this video, I’ll be showing you how to convert an image such as PNG, BMP, JPEG, TIFF, to a vector format for laser cutting, so this would be a file format such as DXF or G-code. We’ll be doing this using Scan2CAD, so first we need to open up the raster image. We’ll go to open and choose our image. I’ll use this one for the example. Okay. So, we have a poor quality image here. We can see a lot of problems that we need to clean up before we go ahead and convert. So, first we’ll clean up the image using the clean raster image tool in Scan2CAD. We’ll threshold the image, just converting everything to black and white since we don’t need the colors. We’ll remove the speckles and holes and move up the speckle and hole size. And that’s pretty much all we need to do with this image, so we’ll click okay, and that will save the cleaning to the canvas.

Okay. So, the next thing we need to do is convert the image. So, to do that, we go to the convert raster image tool in Scan2CAD, and because we’re converting this for laser cutting, we’re going to use the outline option. And the defaults here are all probably the best that you’d want to use for laser cutting purposes. So, you can see that the slider is quite high on the smooth end, bias to curves, and lines and arcs in the output, meaning that the vector image will be formed of vector lines and and vector arcs. Now let’s hit run and just preview the results in the preview window here. So, we can see the conversion and we can compare that to the original image just to see how accurate it is, and it looks good to me. If we weren’t happy with the conversion, what we could do now is change the settings and hit run as many times as we want until we are happy with the results.

When we are happy, we click okay to save the results to the canvas and we’re now viewing the vector image. So let’s click highlight vectors, just so I can see what we have here. Pink represents vector arcs and red represents vector lines. So, it’s important to note here that Scan2CAD has created the image using as few vector entities as possible whilst being accurate to the original image. Scan2CAD does this to make it the most suitable for CNC cutting, laser cutting, whatever your cutting requirements are. So, this is optimized for your laser cutting.

So, the next thing you may want to do before saving out your file is add scaling so that when you do come to laser cut the design you know that it’s the correct size. To do that, we can click the measure tool, and let’s say, as an example, we want this whole design to be 30 centimeters in width. We could choose orthogonal snap, meaning that the line we’re about to draw would just be perfectly horizontal, and we could also choose snap to endpoints, meaning it will snap to the vectors. Okay. So we’ll click and draw like so. You can see it snapping, and you see that that’s auto filled this measurement up here. So, we’re gonna say that the distance we just measured is… Calibrate, and as an example, we’ll say 30, change the unit of measurement to centimeters, click apply, and now the whole drawing has the correct scaling of measurements.

So, we’ve converted the original poor quality raster image to a nice clean vector profile which is optimized for our laser cutting, and we’ve also added scaling information. The final thing to do is to save out the file. Scan2CAD supports DXF, DWG, and G-code file formats. So we can go to file, save as vector, and from here you can see the options and you can go ahead and choose G-code, for example. Let’s just name this Test, and you’ll see that when we select G-code we also have some G-code specific settings here, should you want to set them in your conversion software. When we click okay, that generates the file and you can go ahead and cut the design. Try this for free at

Tutorial breakdown

Here’s a breakdown of the steps we went through in the video.

1. Load up your raster image onto Scan2CAD

Boot up Scan2CAD and click on ‘File’ > ‘Open’. Navigate to your raster file and click on ‘Open’.

2. Clean up your raster image

With any conversion software, your output is only as good as your initial image. So it’s good practice to make sure your initial raster image is as clean and as clear as possible. Click on ‘Clean image’  on the upper left of the Scan2CAD interface. In the dialog window that opens, click on ‘Threshold’ under ‘Color Reduction’ to turn it into a completely Black & White image. Additionally, the different options under ‘Clean Image’ are also useful in making your raster image as suitable as it can be for conversion. Once you’re happy with the preview image to the left, click on ‘OK’ to execute the edits.

3. Convert the raster image

Click on ‘Convert raster image’ right next to the ‘Clean image’ button from the previous step. For most images, you’ll want to stick with the ‘Outline’ vectorization method; it has a handy vector definition slider that you can tweak to get the right amount of smoothing for your output vector. You can also opt to use the ‘CNC Profile’ vectorization preset under the ‘Technical’ vectorization method option, and it has a lot more fine-tuning settings that you can tweak. Click on ‘Run’ to generate a preview and when you’re happy with that, click on ‘OK’.

4. Saving the converted image

Most of the work is done at this point and all that’s left is to save the newly-converted vector file. While on the ‘Vector’ tab, click on ‘File’ > ‘Save as’ > ‘Vector’. Navigate to where you want to save the file, give it a name, and choose the file format you want to save it as (DXF, DWG, or g-code). Then click on ‘Save’.

Some conversion tips

Image resolutions

Image resolutions Source

All in all, the process in Scan2CAD takes less than a minute to do. Do keep in mind though that with any conversion process, the biggest factor that determines the quality of the output will always be the quality of the initial image – garbage in, garbage out. So it is very important to choose the most suitable version of the image for conversion. Once you have that, all that’s left is a small amount of clean up and post-processing work to get the best possible output for laser cutting.

The post-processing is unique for different images and laser cutting programs. In most cases, you’ll want to do the last edits on your preferred CAD software or your laser cutting software if it has editing capabilities. For minor fixes, Scan2CAD has some editing tools to the left of its interface. You can add a few lines or erase any parts of the image you don’t want included in your final output.

What kind of images are suitable for conversion on Scan2CAD?

– High-resolution images. With lower quality images, you’ll be seeing a lot of jagged, pixelated edges and you’ll want to avoid those as much as you can when doing automatic tracing. The software is designed to accurately depict the source image, so if your original raster file has jagged edges, chances are, the output vector file will have those as well. On the other hand, you don’t want to go too high-quality with your images, since that usually leads to unnecessarily long conversion times. 

– Minimal shades and shadows. Having too many high-contrast shadows in the image will obscure some of its details. For laser cutting projects where accuracy and precision are important, you’ll want Scan2CAD to pick up as much detail as it can from the original image.

– Image formats with lossless compression. JPEGs and GIFs are pretty standard formats for image, but the reason they’re so popular is their portability. What they sacrifice in return for their small file size is their lack of detail and quality. Try to shoot for image formats such as TIFF, PNG, or BMP – file types that use lossless compression and have higher image quality that other standard formats.

– Clean, crips images. Image noise in the form of speckles or holes in the raster file will also be picked up by Scan2CAD and converted into vector elements. Use images with as little noise as possible and make sure to utilize Scan2CAD’s ‘Clean image’ tool to edit out any unwanted parts of the image.

– Monochromatic raster images. If you have colored or grayscale images, Scan2CAD’s ‘Clean image’ dialog box has a handy ‘Threshold’ tool to turn them completely black and white. This is the most suitable type of image to convert.

We have a detailed guide on ideal scanner settings that you could follow to get just the right amount of detail in your source image.



Convert your images and PDFs for CAD and CNC

Download your free trial