K40Nano / K40Tools

Tools for the K40 Laser Cutter using K40Nano API
MIT License
14 stars 3 forks source link

PNG Raster Engraving Not Working Correctly #7

Open pareshkakadiya opened 2 years ago

pareshkakadiya commented 2 years ago

I am trying to send PNG file to K40 Nano controller for engraving. Rather than doing actual engraving it does engrave the entire rectangle in which the entire shape is drawn.

Herewith I have attached the sample file which I am trying to send to the laser, but it is not giving desire output. I am using the PngParser class for the generating engraving cut jobs.

star

Can someone please help me in this?

tatarize commented 2 years ago

Sure.

First proper explanations. This project is largely deprecated since it derived the original code K40Nano thing was derived from K40Whisperer and there are licensing issues as I wanted to use MIT license so I had to give this up and code it from scratch. And for a lot of this low level hacking it might still be best to raise an issue on MeerK40t ( https://github.com/meerk40t/meerk40t ). While the project is a lot larger CLI and fully functional CLI-project is still a goal and I'd be more than happy to help make whatever you need this for happen.

That said. What's happening here is that PNG parsing is not processing the transparency level. You have a black star on a transparent black background and when it ignores the transparency, it registers the image as one big black blob.