Image file(.png) silent printing on Ubuntu


Hi, I’m making a Ubuntu based photo print program with Electron.

When I made on Windows, I saved the image as PNG and called the windows built-in software(shimgvw.dll) with the code below.

iawait execPromise(`rundll32.exe c:\\windows\\System32\\shimgvw.dll,ImageView_PrintTo /pt "${process.cwd()}\\saved_image.png" "MY_PRINTER_MODEL_NAME"`);

What should I do in Ubuntu? :joy:

What I want to implement is to print the photos that have been finished composing at the user’s choice by pressing a button.

When I do a search, I only get results for PDF files.

I wonder if there are any modules or commands.
Thank you!

P.S. Sorry for my bad English :frowning: