How to Prepare a Photo for Laser Engraving
Size a photo to your laser line interval, pick dithering or grey-scale, set the tone for wood, slate or metal and save a PNG or raster G-code.

How to Prepare a Photo for Laser Engraving
Engraving a photo with a diode or CO2 laser is one of the most satisfying maker projects, and one of the easiest to get wrong. The laser cannot print grey. It burns dots along lines, and the photo has to be turned into a pattern of dots that fits those lines exactly. The free Photo to Laser Engraving Image and G-code tool does that preparation and can write the G-code too.
Start with the right photo
Choose a sharp photo with good contrast and a clear subject. Faces should be well lit without deep shadows; pets work well against plain backgrounds. Crop tightly before you start, because every square millimetre of background takes engraving time.
Size and line interval
The most important setting is the line interval, the distance between scan lines. Most diode lasers engrave photos well at 0.08 to 0.1 mm on hardwood. At 0.1 mm the laser draws ten lines per millimetre, which equals 254 dots per inch. Enter the final width in millimetres and the tool resizes the photo so one pixel equals one dot. This matters: if the image has a different resolution, your laser software resamples it and the dithering pattern is ruined.
Tone for the material
Materials do not respond like a screen. Wood darkens quickly and blocks up the shadows, so photos usually need more brightness and a higher gamma. Slate, dark coated metal and painted acrylic get lighter where the laser hits them, so the image must be inverted. The material presets set a sensible starting point for tone, dithering, power and speed; they are examples for a 5 to 10 watt diode laser and should be adjusted after a test.
Use the before and after slider while you change brightness, contrast and gamma. Aim for detail in the faces and some texture in the dark areas.
Dithering or grey-scale
Dithering turns grey into a pattern of on and off dots. Error-diffusion methods look at each pixel, decide on or off, and pass the rounding error to the neighbours, so the average brightness is kept. Jarvis-Judice-Ninke and Stucki spread the error over a wide area and give smooth, natural portraits on wood. Floyd-Steinberg uses a smaller area and keeps fine detail but can show worm-like patterns. Atkinson passes on only part of the error and gives crisp, high-contrast results that suit slate. Ordered Bayer patterns look mechanical but engrave very evenly.
Grey-scale mode instead varies the laser power with the tone. It can look smooth on materials that darken evenly, but it needs a laser with good low-power control. Threshold is for logos and line art.
Laser settings and G-code
The G-code is written for GRBL controllers in laser mode. Set the power range in percent and the S range to match your controller's maximum spindle setting, usually 1000. M4 dynamic power is recommended because it reduces power while the head speeds up and slows down, so edges do not burn darker. Overscan adds a run-up past each end of a line. Bidirectional rows halve the travel, and skipping blank rows saves more time. The time estimate ignores acceleration, so real jobs take a little longer.
If you use LightBurn or LaserGRBL, you may prefer to save the PNG and let your software drive the laser. The PNG carries its resolution, so it imports at the right size. In LightBurn choose Passthrough for a dithered image so it is not processed twice.
Run a test grid
Before engraving the real piece, engrave a small grid of squares at different power and speed settings on a scrap of the same material. Pick the square that shows the most even range from light to dark and use those settings. This takes ten minutes and saves many ruined boards.
Safety
Never leave a running laser unattended. Wear glasses rated for your laser's wavelength, use ventilation or an enclosure with extraction, and keep a fire extinguisher close. Do not engrave PVC, vinyl or other chlorine-containing plastics, which release corrosive and toxic gas.



