Question Print multiple images from list or text or API

Tunnelboy

Commendable
Oct 16, 2019
4
0
1,510
Trying to find a program that will print a list of JPG files. Either from a text file, csv, xml or direct API-like command. Automated, NO drag & drop. Preferably some kind of software that watches a folder for this text file and when found prints everything in it.

I found this thing called "Print Conductor", but looks like a drag and drop. That doesn't help as I have about 3,000 images over 30 different folders. Perhaps something that can digest a CSV file like:

folderx/461732.jpg,1
foldery/457789.jpg,3
etc (filename,qty)

Any ideas?
 
Not sure if there is any app out there come all of these inside the box.
I think there should be apps for printing images, as they take the image path as input(terminal argument) and then print it.
And there should be some apps out there(even a simple bash script) that could be able read a text file line bye line.
And finally, an app that place a folder/file change listener(hook) to perform some action

So it goes like this, listen on a file that contains file path(each line e file)
Then when it's changed/created, then for each line in the file, run the image print process for good

You could also bring all of these in one box by your own and have your program(if you are a programmer), but it's really easy to achieve

Hope it helps
 
Do you actually want just a list of the .jpg files or do you require the found .jpg files to be printed?

Either way I suggest using Powershell or Python

A printed listing is much simpler. How-to examples are easily found online.

Reference starter links:

https://www.nextofwindows.com/printing-all-pdf-or-word-documents-in-a-folder-to-any-printers-at-once

https://stackoverflow.com/questions/36772569/printing-with-powershell-and-files-in-folders

Python may also be a viable way to accomplish the task.

https://www.newbedev.com/python/howto/how-to-iterate-over-files-in-a-given-directory/

The advantage being that you can make changes to the script yourself if and as the requirements change.

First focus on getting a single .jpg to print.

Then focus on getting a "loop" set up that will print all of the .jps in the folder to print.

Lastly focus on setting up the logic to check if there are .jpgs that need to be printed.
 
Thanks for the help. Ok, here's what I do. I manufacture DVDs on demand. I have an Epson Discmaker which is kind of a robotic burner/printer. It has a "listener" program. I am running xampp, and wrote a PHP script where I can select the DVDs I need to make and it creates a small file in a special folder that Epson is looking at. It picks up my file and that tells it what to burn and what to print on the label.

So let's say I've run 100 different DVDs that day. I have the stack of 100 DVDs, but now I have to print the covers for each of those. So I have to first locate each cover image (tedious), open it, and print it. Ideally, I'd love for PHP to also print the file, but all my searching has led me to believe that I can't print using PHP. All I know is PHP. But I can maybe learn enough Python or Powershell (whatever that is) to maybe do this. I will look at the links you referenced.