How best to convert a vector image (for example from Illustrator or Inkscape) to a .gds, or a part of one .gds?
I am avoiding raster formats because I don’t want to lose sharpness.
You can convert an .eps file to a .gds using the Nazca image() function. The Nazca image() gives also flexibility in adapting: a size, a pixelsize and a threshold for a more desired outcome.
For now, all file formats supported by Pillow – Python Imaging Library can be converted to a .gds file.