Pro Tips to Convert JPG to DXF

convert jpg to dxf

Convert JPG to DXF with Scan2CAD, Avia Systems’ market leading software. Helping users around the world to convert with intelligence & edit with precision.

Convert JPG to DXF with Scan2CAD. Download your free trial

What is JPG

JPG is the most common file extension type for files that conform to the JPEG compression standard.

Other file extension types for JPEG compression are JPE, JPEG, JIF and JFIF.

JPEG is an acronym for Joint Photographic Experts Group.

The JPEG compression method is known as a ‘lossy’ type and is best applied to photographic images with smooth transitions between areas of color and tone.

It is not well suited for line drawings, text or solid graphics which have a sharp transition from typically black(ink) to white(paper).

Applying JPEG to these black and white image types will result in greyscale ‘blocky’ artifacts being introduced which will ‘blur’ the distinction between ink and paper.

If we attempt to do a JPG to DXF conversion using a JPEG image we will most certainly not get acceptable results.

 

Example of JPG

Convert JPG to DXF with Scan2CAD

The magnified part of the above JPG image shows the ‘blocky’ greyscale artifacts that have been introduced as a result of the JPEG compression.

 

 

If we were to convert this JPG to DXF without modification then the results would be as follow (vectors displayed in red and magenta, JPG image in black).

 

 

Avoiding JPG to DXF problems

1. Do not use JPG.

The simplest way to avoid the above problems is do NOT use JPG file type for line drawings, text or solid graphics. For black and white images use a file type such as TIF set at Group3Fax or preferably Group4Fax. This will not introduce the above problems and beneficially the file size will be relatively small.

However what if you have no control over how the file is given to you and it is a JPG type then we need to modify it.

2. Modify using Thresholding.

Thresholding is a way of setting all gray image parts (pixels) below a certain value to white and all pixels above this value to black.

Scan2CAD contains 2 methods of Thresholding – Simple and Adaptive.

In most cases the Simple method will suffice.

With the JPG image loaded into Scan2CAD, select menu option:-

Raster Effects > Threshold > Simple

You will now be presented with a Scan2CAD Dialog containing a Preview window together with a Threshold slider control.

Setting the slider around the mid point and moving it up and down the scale you will see the resultant effect in the Preview window.

You can zoom in and out of the image in the Preview window to aid clarity.

When you consider that the image is now properly black(ink) for image elements and white(paper) for the background then press the dialog OK button to exit the dialog.

 

Scan2CAD JPG to DXF conversion

To do a JPG to DXF conversion, select the vectorization type using menu option:-

Type > Architectural – (the part drawing we are using is from an Architectural floor plan)

Now press the VEC toolbar button

 

Convert JPG to DXF with Scan2CAD

Above is the result of Thresholding the JPG image with a value of 127 and then performing a JPG to DXF conversion.

 

Market leading Conversion and Editing Software

Start your unlimited 14 day trial
download your free trial

4 Responses to Pro Tips to Convert JPG to DXF

  1. Ben April 1, 2014 at 12:04 am #

    Hi Mr LukeI am a 60 years young man semi retired i play with CNC plasma and router hobby machinei am getting exploited by so call expert designer of JPEG and DXF filesIwant to buy a software froendly to learn and operate to stop that abuseCan you recommend something acceptables in price and again friendly to use and learn.Icount on your loyalty,objectivity and my walletand a good sens of humour Life is shortThanks and RegardsBen

  2. Colin July 10, 2014 at 12:11 pm #

    Hi,I am a 3D crystal engraver and looking for software to convert any jpg,jpeg image into 3D for engraving (DXF) format. 3ds Max on the expensive side,your help/suggestions would be much appreciated.
    Colin

    • Luke Kennedy
      Luke Kennedy July 20, 2014 at 2:24 pm #

      Hey Colin – with Scan2CAD only 2D cDXF files are supported.

      Bear in mind that JPEGS and any other image file types are only 2D. So it’s not strictly possible to automatically convert the 2D to 3D. You would probably be best converting the files to DXF with an application like Scan2CAD.

      At which point you’d have a clean 2D CAD file with which you’d need to input the ‘z’ axis information. You couldn’t do this step with an application like Scan2CAD.
      This probably isn’t the information you were hoping for but I hope it helps somewhat.

Leave a Reply

Please type the characters of this captcha image in the input box

Please type the characters of this captcha image in the input box