Contact Sales & After-Sales Service

Contact & Quotation

  • Inquire: Call 0086-755-23203480, or reach out via the form below/your sales contact to discuss our design, manufacturing, and assembly capabilities.
  • Quote: Email your PCB files to Sales@pcbsync.com (Preferred for large files) or submit online. We will contact you promptly. Please ensure your email is correct.
Drag & Drop Files, Choose Files to Upload You can upload up to 3 files.

Notes:
For PCB fabrication, we require PCB design file in Gerber RS-274X format (most preferred), *.PCB/DDB (Protel, inform your program version) format or *.BRD (Eagle) format. For PCB assembly, we require PCB design file in above mentioned format, drilling file and BOM. Click to download BOM template To avoid file missing, please include all files into one folder and compress it into .zip or .rar format.

How to Convert PNG/JPG Image to Gerber for PCB Silkscreen and Logos

Adding a logo or custom graphic to your PCB sounds simple enough. You have a PNG file, you want it on the silkscreen. How hard can it be?

As it turns out, quite hard. PCB manufacturing uses Gerber files, which are vector-based manufacturing instructions. PNG and JPG are raster images made of pixels. Bridging these two worlds requires conversion tools that transform your pixel-based artwork into something a photoplotter can understand.

I’ve placed hundreds of logos on PCBs over the years, and I’ve learned what works, what doesn’t, and how to avoid the common pitfalls that result in blurry, missing, or completely wrong graphics on manufactured boards. This guide covers every method for converting PNG and JPG images to Gerber format for silkscreen, logos, and custom PCB artwork.

Understanding Why Image to Gerber Conversion is Necessary

Before diving into methods, understanding why this conversion matters helps you make better decisions about image preparation.

What are PNG and JPG Files?

PNG (Portable Network Graphics) and JPG (Joint Photographic Experts Group) are raster image formats. They store visual information as a grid of pixels, where each pixel has a specific color value. These formats work great for photographs and web graphics but present challenges for manufacturing.

Key characteristics:

  • Resolution-dependent (quality degrades when scaled up)
  • No inherent physical dimensions (pixels don’t equal millimeters)
  • Can contain millions of colors
  • Not directly usable by PCB manufacturing equipment

What Makes Gerber Files Different

Gerber format stores manufacturing instructions as vectors and coordinates. Instead of describing what something looks like, Gerber files tell a photoplotter exactly where to expose photoresist and with what aperture shape.

Key characteristics:

  • Resolution-independent (scales without quality loss)
  • Absolute physical coordinates
  • Single color per layer (dark or clear)
  • Industry standard for PCB fabrication

The Conversion Challenge

Converting PNG/JPG to Gerber requires translating pixel data into vector commands. This process, called vectorization, approximates the shapes in your image using paths and filled regions that Gerber format can represent. The quality of this conversion depends on your source image resolution, the conversion tool used, and how well you prepared the image beforehand.

Preparing Your Image for Gerber Conversion

The most common reason for poor logo quality on manufactured PCBs isn’t the conversion tool. It’s the source image. Spending time on image preparation dramatically improves your results.

Choose the Right Resolution

Higher resolution source images produce cleaner conversions. The conversion process essentially traces your image, and more pixels mean more detail to trace.

Target Logo SizeMinimum Image ResolutionRecommended Resolution
5mm200 x 200 pixels500 x 500 pixels
10mm400 x 400 pixels1000 x 1000 pixels
20mm800 x 800 pixels2000 x 2000 pixels
50mm2000 x 2000 pixels4000+ pixels

Pro tip: It’s always better to start with a large image and scale down. Scaling up a small image introduces blur that the conversion process will faithfully reproduce as fuzzy edges.

Convert to Black and White

Silkscreen printing is binary: ink is either present or absent. Your image needs to reflect this reality before conversion.

Steps for proper conversion:

  1. Open your image in any graphics editor (GIMP, Photoshop, Paint.NET)
  2. Convert to grayscale first
  3. Adjust contrast to maximize black/white separation
  4. Convert to pure black and white (1-bit) or threshold at 50%
  5. Review edges for clarity

Colors don’t translate to silkscreen. That vibrant blue logo will become either solid white or transparent on the board, depending on how your conversion tool interprets it.

Add Proper Margins

Most conversion tools have quirks with image edges. Adding a white border (at least 10 pixels) around your artwork prevents edge artifacts and makes positioning easier after conversion.

Simplify Complex Artwork

Fine details below your manufacturer’s minimum feature size won’t reproduce correctly. Before conversion:

  • Remove thin lines under 0.15mm (6 mils) for silkscreen
  • Eliminate small gaps that may fill in during printing
  • Thicken text to ensure readability
  • Consider simplifying complex gradients or textures

PNG/JPG to Gerber Conversion Methods

There are several approaches to convert images to Gerber format, ranging from built-in PCB software tools to dedicated conversion applications.

Method 1: KiCad Image Converter (Bitmap2Component)

KiCad includes a built-in image converter that transforms bitmap images into footprints suitable for placement on any PCB layer. This is the most popular free option.

Step-by-step process:

  1. Launch the Image Converter
    1. Open KiCad
    1. Click on Image Converter (or Bitmap2Component in older versions)
  2. Load Your Image
    1. Click “Load Bitmap”
    1. Select your PNG or JPG file
    1. The preview shows how KiCad interprets your image
  3. Configure Settings
    1. Set Output Format to “Footprint”
    1. Adjust Black/White Threshold (default 50 is usually good)
    1. Select target layer: Front Silkscreen for most logos
    1. Check “Negative” if your artwork is inverted
  4. Set Size
    1. Adjust resolution to achieve desired physical dimensions
    1. Watch the “Output Size” display as you change resolution
    1. Both X and Y resolution should match for proper aspect ratio
  5. Export
    1. Click “Export to Clipboard” for quick placement
    1. Or “Export to File” to save as .kicad_mod for reuse
  6. Place in PCB
    1. In PCB Editor, press Ctrl+V to paste
    1. Or add the exported file to a footprint library and place normally

Important notes:

  • KiCad assumes 300 PPI default resolution
  • Use “Negative” option when your artwork shows black where you want silkscreen ink
  • Large images may slow down KiCad significantly

Method 2: Altium Designer Import Bitmap

Altium Designer offers multiple methods for importing images, with direct copy/paste being the most reliable.

Preferred method (Copy/Paste):

  1. Open your image in Microsoft Paint
  2. Save as monochrome BMP format
  3. Select all (Ctrl+A) and copy (Ctrl+C)
  4. In Altium PCB Editor, select target layer
  5. Paste (Ctrl+V)
  6. Resize using Unions → Resize Union if needed

Alternative method (Import Bitmap):

  1. Tools → Convert → Import Bitmap
  2. Select your image file
  3. Choose target layer (Top Overlay for silkscreen)
  4. Adjust scaling and resolution
  5. Click OK to place

Altium-specific tips:

  • Monochrome BMP works most reliably
  • Color images may import unpredictably
  • Very high DPI images can cause issues with some fabs

Method 3: Eagle import-bmp.ulp Script

Eagle uses a ULP (User Language Program) script to import bitmap images.

Process:

  1. Prepare image as monochrome BMP
  2. Note image dimensions in pixels
  3. In Eagle, run File → Run ULP
  4. Select import-bmp.ulp
  5. Choose your BMP file
  6. Set scale factor: divide desired size by pixel count
  7. Select target layer (usually tPlace for top silkscreen)
  8. Run the generated script

Critical Eagle considerations:

  • DPI under 400 is recommended for reliable fab output
  • OSH Park recommends under 500 DPI (2 mil minimum pixels)
  • High-DPI imports can cause files to fail silently at fabs

Method 4: Gerbolyze Direct Image to Gerber

Gerbolyze is a specialized tool that converts PNG and JPG images directly into Gerber files, bypassing PCB design software entirely.

Installation:

bash

pip install gerbolyze

Workflow:

  1. Generate template from existing Gerbers:

bash

   gerbolyze template –top template.svg gerber_dir

  1. Open template in Inkscape, insert your PNG/JPG
  2. Position and scale your image within the template
  3. Run conversion:

bash

   gerbolyze paste –top edited_template.svg gerber_dir output_dir

Gerbolyze advantages:

  • Handles complex images with grayscale dithering
  • Works with existing Gerber files from any CAD tool
  • Supports multiple vectorization methods
  • Processes PNG/JPG directly without intermediate conversion

Method 5: ImageToPCB Standalone Converter

ImageToPCB is dedicated software for converting images to complete Gerber packages.

Features:

  • Converts any image format to Gerber
  • Generates drill files from image
  • Creates soldermask from copper areas
  • Supports multi-layer conversion

Basic workflow:

  1. Load your image
  2. Set physical PCB dimensions
  3. Adjust drill sizes if applicable
  4. Export Gerber and Excellon files

This tool is particularly useful for artistic PCBs where the entire board design comes from image files rather than traditional CAD layout.

Method 6: Online Converters (img2mod)

Wayne and Layne’s img2mod provides a web-based conversion service for KiCad users.

Process:

  1. Visit img2mod.wayneandlayne.com
  2. Upload your PNG or JPG
  3. Set module name and scale factor
  4. Download .kicad_mod file
  5. Add to KiCad library and place

Scale factor calculation:

  • Scale factor = desired pixel size in mm
  • For 10mm logo from 1000 pixel image: scale = 10/1000 = 0.01

Choosing the Right PCB Layer for Your Image

Where you place your converted image affects both appearance and manufacturing cost.

Silkscreen Layer (Most Common)

Advantages:

  • Standard option, no additional cost
  • High contrast (typically white on dark soldermask)
  • No electrical implications

Limitations:

  • Resolution limited by silkscreen process (typically 6-8 mil minimum)
  • Color limited to manufacturer’s silkscreen ink
  • May not print over soldermask edges cleanly

Copper Layer with Soldermask Opening

Advantages:

  • Higher resolution than silkscreen
  • Metallic appearance (especially with ENIG finish)
  • Very durable

Process:

  1. Place image on copper layer
  2. Create matching (slightly larger) image on soldermask layer
  3. The offset prevents registration issues from causing visible edges

Considerations:

  • Requires two layer placements
  • Must not interfere with electrical traces
  • Adds copper to board (may affect cost marginally)

Soldermask Layer Only

Advantages:

  • Can reveal bare FR4 substrate for different appearance
  • Good resolution

Limitations:

  • Lower contrast than silkscreen
  • Color depends on soldermask and substrate colors

Read more How to convert PCB Files in different Design software:

Troubleshooting Common Image to Gerber Issues

Problem: Logo Appears Blocky or Pixelated

Causes:

  • Source image resolution too low
  • Threshold setting wrong for image contrast

Solutions:

  • Start with higher resolution source (at least 300 DPI at target size)
  • Adjust threshold in conversion tool
  • Pre-process image to sharpen edges before conversion

Problem: Logo Missing or Partially Printed on Manufactured Board

Causes:

  • Feature size below manufacturer’s capability
  • Very high DPI causing fab processing issues

Solutions:

  • Keep DPI under 400 for silkscreen
  • Ensure minimum line width is 6 mils (0.15mm)
  • Request Gerber verification from manufacturer before production

Problem: Logo Appears Inverted (Negative)

Causes:

  • Wrong polarity setting in conversion tool
  • Image colors interpreted opposite to expectation

Solutions:

  • Toggle “Negative” option in converter
  • Invert image colors before conversion
  • Verify in Gerber viewer before manufacturing

Problem: Logo Size is Wrong

Causes:

  • Resolution/scale settings incorrect
  • PPI/DPI mismatch between image metadata and conversion tool

Solutions:

  • Calculate correct DPI: DPI = (pixels / inches desired)
  • Verify dimensions in conversion tool preview
  • Measure in Gerber viewer before sending to fab

Problem: Fine Details Don’t Reproduce

Causes:

  • Details below manufacturing capability
  • Silkscreen printing limitations

Solutions:

  • Simplify artwork for manufacturing
  • Remove features under 6 mils
  • Consider copper layer for finer detail requirements

Useful Resources and Tools for Image to Gerber Conversion

Conversion Software

ToolPlatformCostBest For
KiCad Image ConverterCross-platformFreeGeneral logo placement
GerbolyzeCross-platformFreeComplex artwork, dithering
ImageToPCBWindowsCommercialFull board from image
img2modOnlineFreeQuick KiCad footprints
reaConverterWindowsCommercialBatch conversion

Image Editing Tools

SoftwareWebsiteCost
GIMPgimp.orgFree
Paint.NETgetpaint.netFree
Photoshopadobe.comSubscription
Inkscapeinkscape.orgFree (vector)

Gerber Viewers for Verification

ViewerPlatformCost
KiCad GerbViewCross-platformFree
GerbVCross-platformFree
ZofzPCBWindowsFree
tracespaceOnlineFree

Documentation and Tutorials

  • KiCad Image Converter: docs.kicad.org
  • Gerbolyze Documentation: github.com/jaseg/gerbolyze
  • Altium Import Image: altium.com/documentation
  • Eagle import-bmp: OSH Park docs (docs.oshpark.com)

Best Practices for Logo and Silkscreen Artwork

After placing countless logos on PCBs, these practices consistently produce the best results:

Start with vector artwork when possible. If your logo exists as SVG or AI, convert it to high-resolution PNG rather than using a low-res file from a website. Vector-to-raster gives you control over the final resolution.

Test at actual size before conversion. Print your image at 1:1 scale on paper. If it looks good printed, it’ll probably look good on the board. If text is unreadable on paper, it won’t be readable on silkscreen.

Add more margin than you think you need. Component placement, soldermask alignment, and silkscreen registration all have tolerances. Keep logos away from board edges and other features.

Verify in a Gerber viewer. Every single time. Open your exported Gerbers and zoom in on the logo. Catching problems before manufacturing saves time, money, and embarrassment.

Keep manufacturer limits in mind. Standard silkscreen can’t reproduce details under 6 mils (0.15mm). If your manufacturer has specific limits, design within them.

Create reusable library components. Once you’ve converted a logo successfully, save it as a footprint in your library. Future projects can reuse it without reconverting.

Frequently Asked Questions About Image to Gerber Conversion

What Resolution Should My PNG/JPG Be for Good Silkscreen Quality?

For clean silkscreen results, your source image should be at least 300 DPI at the target printed size. For a 10mm logo, that means roughly 120 x 120 pixels minimum, though 300 x 300 or higher produces noticeably better results. Remember that silkscreen printing has physical limits around 6 mils (0.15mm), so extreme resolution won’t improve output beyond the manufacturing capability.

Can I Put a Colored Image on My PCB Silkscreen?

No, silkscreen is a single-color process. Your image will be converted to black and white during the conversion process. The silkscreen color (usually white, sometimes black or yellow) is determined by the solder mask color and what the manufacturer offers. If you want multiple colors, you’d need multiple board orders with different solder mask and silkscreen combinations, then assemble the final product from different PCBs.

Why Does My Logo Look Different on the Manufactured Board Than in My Design Software?

Several factors cause this discrepancy. Silkscreen printing has lower resolution than your screen, so fine details blur or disappear. Registration between silkscreen and solder mask isn’t perfect, causing slight misalignment. The conversion from pixels to vectors introduces approximations. Finally, silkscreen ink spreads slightly during printing, making features appear thicker than designed. Always design with slightly thinner lines than desired.

Can I Convert a Photograph to Gerber for PCB Artwork?

Yes, but with significant limitations. Photographs contain continuous tones (shading), while Gerber format only supports binary on/off states. Gerbolyze can convert photographs using dithering techniques that simulate grayscale with patterns of dots, similar to newspaper printing. The result works best on copper layers with high-resolution capability. Standard silkscreen is too coarse for detailed photographic reproduction.

What’s the Difference Between Placing an Image on Silkscreen vs Copper Layer?

Silkscreen is printed ink on top of the solder mask, typically white. It’s the standard choice for logos and offers good contrast but limited resolution (6-8 mil minimum features). Copper layer logos are actual metal, visible where the solder mask is removed to expose bare copper (or gold with ENIG finish). Copper offers higher resolution and a distinctive metallic appearance but requires coordinating two layers (copper and mask) and must not interfere with electrical traces.

Conclusion

Converting PNG and JPG images to Gerber format for PCB silkscreen and logos involves understanding both the limitations of manufacturing processes and the capabilities of conversion tools. The key to success is proper image preparation: start with high-resolution source files, convert to clean black and white, and verify the output in a Gerber viewer before manufacturing.

For most users, KiCad’s built-in Image Converter provides a straightforward path to placing logos on silkscreen layers. For more complex artwork or integration with existing Gerber files, Gerbolyze offers powerful options including grayscale dithering for photographic images.

Whatever method you choose, remember that the manufacturing process has physical limits. Design your artwork with these constraints in mind, test at actual size, and always verify your Gerber output before sending boards to production. A few minutes of preparation and verification saves days of waiting for incorrectly manufactured boards.

Leave a Reply

Your email address will not be published. Required fields are marked *

Contact Sales & After-Sales Service

Contact & Quotation

  • Inquire: Call 0086-755-23203480, or reach out via the form below/your sales contact to discuss our design, manufacturing, and assembly capabilities.

  • Quote: Email your PCB files to Sales@pcbsync.com (Preferred for large files) or submit online. We will contact you promptly. Please ensure your email is correct.

Drag & Drop Files, Choose Files to Upload You can upload up to 3 files.

Notes:
For PCB fabrication, we require PCB design file in Gerber RS-274X format (most preferred), *.PCB/DDB (Protel, inform your program version) format or *.BRD (Eagle) format. For PCB assembly, we require PCB design file in above mentioned format, drilling file and BOM. Click to download BOM template To avoid file missing, please include all files into one folder and compress it into .zip or .rar format.