Oh no! Some styles failed to load. 😵 Please try reloading this page
Menu

#175 SVG export on Windows XP sometimes generates raster output

v1.0 (example)
open
nobody
windows (1)
5
2018-08-06
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

     
  • Peter Brett

    Peter Brett - 2013-09-05

    Added PLANE_2.art

     
  • Sergey Alyoshin

    Sergey Alyoshin - 2013-09-06

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

     
  • Andrew Ippoliti

    Andrew Ippoliti - 2013-10-23

    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.

     
  • Krzysztof Bąk

    Krzysztof Bąk - 2018-04-16

    It's 5 years after the bug was reported and nothing has been done to fix this. The problem still exists on Windows and Linux. It's impossible to generate SVG or PDF with vectors.

     
  • Samuel Legge

    Samuel Legge - 2018-07-25

    Bumping this. The bug is still an issue.

    Any file with G36 G37 fills fails to export vectors. Any chanve of fixing that? See example

     
    • Sergey Alyoshin

      Sergey Alyoshin - 2018-08-03

      This problem is Cairo library raster behavior if polygon is cleared by some
      negative aperture or other polygon. A workaround is draw over with background
      color instead of clearing. And the drawback is there won't be any see thru
      negative opening if two layers if you print tow layers one on top of another.
      But I think it is still worth it.

       
      • Sergey Alyoshin

        Sergey Alyoshin - 2018-08-03

        One on another.

         
      • Sergey Alyoshin

        Sergey Alyoshin - 2018-08-03

        SVG

         
        • Samuel Legge

          Samuel Legge - 2018-08-04

          Thanks for the reply.

          The outputs you have created would be good enough for my prpouse. How did you change the program to get it to make those outputs? Would love a quick explanation if possibe please.

          Thanks again.

           
          • Sergey Alyoshin

            Sergey Alyoshin - 2018-08-04

            For now it is just proof of concept and changes need to be done properly.

             
          • Sergey Alyoshin

            Sergey Alyoshin - 2018-08-06

            Changes in git commit b736df9dbb4c6c17d4ff2cb51b6b9f52a8d6963d

             

Log in to post a comment.