Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#175 SVG export on Windows XP sometimes generates raster output

v1.0 (example)
open
nobody
windows (1)
5
2013-10-23
2013-09-05
Peter Brett
No

Platform: Windows XP SP3 x86
Version: Gerbv 2.6.0 (installed using gerbvinst-2.6.0.exe, md5sum 9427b8c83562785f8451ddd2fc147335)

Steps to reproduce

  1. Open gerbv
  2. Select "File→Open Layers..."
  3. Choose "PLANE_2.art" and click "Open"
  4. Select "File→Export→SVG..."
  5. Enter "PLANE_2.svg" and click "Okay"
  6. Open a text editor (e.g. Emacs)
  7. Open "PLANE_2.svg"

Expected results: SVG file contains vector data.
Actual results: SVG file contains embedded raster image in PNG format.

Attachments:

  • PLANE_2.art --- example gerber file for reproducing problem.
  • PLANE_2.bad.svg --- output SVG file exhibiting problem

Discussion

  • Peter Brett
    Peter Brett
    2013-09-05

    Added PLANE_2.bad.svg

     
    Attachments
  • Peter Brett
    Peter Brett
    2013-09-05

    Added PLANE_2.art

     
    Attachments
  • Same result with gerbv-2.6.1 on Linux.
    But it will generate vectored file, if polygon is removed.

     
  • I found that G36 and G37 commands in my gerber file caused this problem. On linux run:

    sed -e's/^G36//g' -e's/^G37//g' original_gerber_filename > fixed_gerber_file
    

    Or in Windows open the gerber file in a text editor and find/replace 'G36' with '' and 'G37' with '' (without quotes).

    Note that the output will be different - but maybe it will have the data you need.

     
    Attachments