Yahoo Groups archive

QTR-Quadtone RIP

Index last updated: 2026-04-28 23:12 UTC

Thread

Help with commandline/terminal options

Help with commandline/terminal options

2014-05-05 by Kazimali Khaki

Hi,


I have been developing a low-cost PCB screen printer for the past few months, based on the Epson R7880, with uses a camera to align each printed image to the exact rotation/stretch of the individual PCBs, and throughout the development stages I was using gutenprint/gimpprint to do all the printing. Now that the alignment works, I was looking to implement the printing part of the project directly into my software, as gutenprint requires users to click print every time (even if called as a Non-Interactive dialog in windows), and so was looking into various options that allow command line access. I came across QuadToneRip a few days ago, and it looks exactly like what I am looking for - however I cannot seem to find any documentation of command line options for windows users.


Maybe I'm being blind, but is there any documentations out there that shows how the full process (load tiff file, set page size and location, curve, printer options, etc, and print)?


Also, has anyone come across any alternative to escputil for windows? The utility allows you to make a printer run a nozzle check, etc, remotely through command line, and this would really come in handy for my software. I have been searching for quite some time, but then again, this is my first experience with a printer-based project...


I would really appreciate any help you can give, 
Kaz

Re: [QuadtoneRIP] Help with commandline/terminal options

2014-05-05 by Kazimali Khaki

Thanks for the link Steve, had never found Turbo Print in my searches before, and looks like they have a windows alternative called PrintFab.


Thanks again..
On Monday, 5 May 2014, 16:38, steve harris <dshlaw@earthlink.net> wrote:

Check out TurboPrint


see:  file:///usr/share/turboprint/doc/html/13-2.html#13.2.Printing%20from%20command%20line|outline


If the program does not explicitly do it, the developers of
      TurboPrint might be able to give you some ideas on how to achieve
      what you want.  



http://zedonet.com/en_home_main.phtml


Best of luck,


Steve Harris
NYC
www.harrisfoto.com
Show quoted textHide quoted text
On 05/05/2014 11:23 AM, Kazimali Khaki wrote:


 
>Hi,
>
>
>I have been developing a low-cost PCB screen printer for the past few months, based on the Epson R7880, with uses a camera to align each printed image to the exact rotation/stretch of the individual PCBs, and throughout the development stages I was using gutenprint/gimpprint to do all the printing. Now that the alignment works, I was looking to implement the printing part of the project directly into my software, as gutenprint requires users to click print every time (even if called as a Non-Interactive dialog in windows), and so was looking into various options that allow command line access. I came across QuadToneRip a few days ago, and it looks exactly like what I am looking for - however I cannot seem to find any documentation of command line options for windows users.
>
>
>Maybe I'm being blind, but is there any documentations out there that shows how the full process (load tiff file, set page size and location, curve, printer options, etc, and print)?
>
>
>Also, has anyone come across any alternative to escputil for windows? The utility allows you to make a printer run a nozzle check, etc, remotely through command line, and this would really come in handy for my software. I have been searching for quite some time, but then again, this is my first experience with a printer-based project...
>
>
>I would really appreciate any help you can give, 
>Kaz
>

Re: [QuadtoneRIP] Help with commandline/terminal options

2014-05-05 by John Labovitz

I’ve been working on a project that wraps the QTR system in a command-line toolkit (implemented with the Ruby language). However, it relies on OS X's CUPS printing system to get information about printers and to queue print jobs. As I understand it, the Windows version of QTR does not use CUPS. I don’t know whether it’s possible to specify command-line options to the Windows QTR tools.

But if it helps, you can find the source to my toolkit here:

	https://github.com/jslabovitz/qttk

No guarantees that it works. The documentation is definitely out of date. But it might be helpful to see how one approach is implemented.

If you’re wondering why I went to the trouble, my goals are to:

	- Create super-profiles containing *all* the important printer-related options (including resolution, dither type, uni/bidirectional mode, etc.); this is all set automatically when a job is printed.

	- Bypass the default (and unavoidable) color management process (Photoshop/Colorsync/etc.) by sending a grayscale image file directly to the QTR printer.

	- Allow for easier creation of new QTR profiles, by automating the characterization & linearization process. (ArgyllCMS is used for generating & measuring targets.)

—John
Show quoted textHide quoted text
On 5 May 2014, at 11:23 AM, Kazimali Khaki <kimaster014@...> wrote:

> 
> 
> Hi,
> 
> I have been developing a low-cost PCB screen printer for the past few months, based on the Epson R7880, with uses a camera to align each printed image to the exact rotation/stretch of the individual PCBs, and throughout the development stages I was using gutenprint/gimpprint to do all the printing. Now that the alignment works, I was looking to implement the printing part of the project directly into my software, as gutenprint requires users to click print every time (even if called as a Non-Interactive dialog in windows), and so was looking into various options that allow command line access. I came across QuadToneRip a few days ago, and it looks exactly like what I am looking for - however I cannot seem to find any documentation of command line options for windows users.
> 
> Maybe I'm being blind, but is there any documentations out there that shows how the full process (load tiff file, set page size and location, curve, printer options, etc, and print)?
> 
> Also, has anyone come across any alternative to escputil for windows? The utility allows you to make a printer run a nozzle check, etc, remotely through command line, and this would really come in handy for my software. I have been searching for quite some time, but then again, this is my first experience with a printer-based project...
> 
> I would really appreciate any help you can give, 
> Kaz
> 
> 
>

Re: Help with commandline/terminal options

2014-05-06 by <kimaster014@...>

Just wanted to give you an update, for those who are looking to use QTR through command line, I tried to emulate the log files that are created in windows, and was able to convert my tiff file and print, but from what I can see it only converts 30% of the image to raster, and then stops, and I have no idea why.

I used the same image in the GUI, and it printed properly, yet when I copy and paste the commands into terminal, it doesnt seem to work.

The commands are as follows:
cd C:\Program Files (x86)\QuadToneRIP

".\\bin\\ImageToRaster.exe" gui 0 0 1 "PPD=Quad7880.PPD PRINTER=Quad7880 MediaType=Matte ripFeed=RollCutOff Pagesize=Custom.60x83cm topmargin=9.6 leftmargin=13.73 scale-percent=100 portrait=yes Resolution=720 ColorModel=QTRIP" "C:\main_720_guten.tif">>"C:\stage1.bin"

".\bin\QuadToPrinter.exe" gui 0 0 1 "PPD=Quad7880.PPD PRINTER=Quad7880 MediaType=Matte ripFeed=RollCutOff Pagesize=Custom.60x83cm Resolution=720 RipSpeed=lospeed ColorModel=QTRIP ripCurve1=circaprint_8060_black ripCurve2=- ripCurve3=- ripBlend1H=100 ripBlend1M=100 ripBlend1S=100 ripBlend2H=0 ripBlend2M=0 ripBlend2S=0 ripBlend3H=0 ripBlend3M=0 ripBlend3S=0 stpDither=Adaptive ripGamma=0 ripLimit=0" "C:\stage1.bin">>"C:\stage2.bin"

".\bin\RawPrint.exe" "EPSON Stylus Pro 7880" "C:\stage2.bin" "main.tif"

The thing is, in the info file, the parts I have put in bold are not preset, and I suspect that is where I am going wrong. However, if I do not save the output (">>[filename in cmd]"), then the terminal just goes into some sort of infinite loop, and no temporary files are created that I could find - so where does the converted file go?

And if I do use the above method, then stage1.bin is 1.09GB in size, when the tiff I am loading is just 2000/2000pixels, at 720ppi. I had a look at the file under Hex Editor, and it consists of row after row of 0xff.

Is there anyone who has tried this method, and maybe knows where I am making a mistake?

I apologise for the long winded explanation, and would really appreciate some guidance,

Thanks,
Kaz

Re: Help with commandline/terminal options

2014-05-06 by <kimaster014@...>

My apologies for the many messages, but I just had a breakthrough - albeit one I should have seen sooner... The way to do automated calling is to edit the QTRgui settings file that is (in windows) C:\Users\...\AppData\Roaming\QuadToneRIP to the settings that are required, then save and close the file, and then in command prompt, just write the following:

QTRgui.exe "image_file_name.tiff"

This will automatically open and print the file!!

And here I was trying to over think it...

Regards,
Kaz

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.