Project 'midlaj/react-gerber-converter' was moved to 'midlaj/gerber2png'. Please update any links and bookmarks that may still have the old path.
G

gerber2png

A React application used for the conversion of Gerber (.GBR) files, commonly used in printed circuit board (PCB) design, into PNG image files. This application allows for easy visualization of PCB layouts without dedicated PCB design software.

Gitlab Icon Updated
Muhammed Midlaj N authored
3ee71ac3

Gerber to SVG Converter

Convert Gerber files into SVG format, enabling users to download them as PNG images. This React + Vite application offers intuitive layer toggling, top and bottom side viewing, and support for double-sided PCB milling.


Table of Contents


Installation

git clone https://github.com/MidlajN/react-gerber-converter.git
cd react-gerber-converter
npm install

Usage

Running the Development Server

npm run dev

Access the application at http://localhost:5173.

Building for Production

npm run build

This generates a production-ready build.

Serving the Production Build

npm run preview

Serves the production build locally at http://localhost:4173.

Accessing the Hosted Application

Hosted version available at gerber2png.fablabkerala.in.

Features

  • Gerber to SVG Conversion: Convert Gerber files into SVG format.
  • Download as PNG: Export SVG images as PNG files.
  • Layer Toggle: Toggle visibility of individual layers.
  • Top and Bottom Side View: Switch between top and bottom sides of the PCB.
  • Support for Double-Sided PCB Milling: Handles PNG images for double-sided PCB milling.

Dependencies

  • PCBStackup: Library for handling PCB stack-up data.
  • gerberToSvg: NPM package for converting Gerber files to SVG.
  • jszip: JavaScript library for creating, reading, and editing ZIP files.

Contributing

Contributions are welcome! Fork the repository and submit pull requests.

License

This project is licensed under the MIT License - see the LICENSE file for details.


If there any known bugs found or run into any issues please let me know. Please enjoy and feel free to share your opinion, constructive criticism, or comments. Email: 👉 midlaj4n@gmail.com Thank you!