First of all, I want to say I love the program – it’s been fantastic for high-quality prints on Linux!
I'm trying to set up a workflow to print multiple files in bulk from the command line.
An example of a command I’ve been trying:
Code: Select all
lp -d Pro1000-TurboPrint -o scaling=50 -o page-bottom=15 *.jpg
When left to default or set to fit-to-page, the bottom margin ends up larger than the top margin. I can set the margin precisely in Gutenprint, but my goal is to bulk print images in a directory, which is why I’m aiming to do it via the command line.
I've tried different syntaxes with lp and lpr, but no luck so far (dozes of attempts, lol).
I found this thread https://www.turboprint.info/support/viewtopic.php?t=162
so now I'm trying to use tpprint piped into lp, but it seems tpprint generates an empty raw file. Here’s an example command I tried:
Code: Select all
tpprint -dCanon_imagePROGRAF_Pro1000 -s10500x14850 -q1 -f3 -v2 output.ppm | lp -d Pro1000-TurboPrint -o raw
Code: Select all
backchannel_fd=-1
tpprint 2.57-1 x64 (02-SEP-2024) - TurboPrint printer driver
Copyright (C)ZEDOnet GmbH, Irsee, Germany. All rights reserved.
04-Nov-2024 11:02
Could not open freepipes pipe /var/spool/turboprint/fd
Filetype=PBM Plusbits_per_pixel=32 bytes_per_line=9920 width=2480 height=3507
RGB mode 8bit
printable_width=8000 max_printable_width=0
Printer=Canon_imagePROGRAF_Pro1000; Module=CanonL; Id=Pro1000
printable_width=8000 max_printable_width=0
Colormode=2; Cartridge=0=Color; Quality=1=Medium; Paper=0=Plain paper
Pagesize=3=A4; Paper Input=0=Automatic Feed; Paper Output=0=Automatic
Duplex=0=Off; Copies=1; Mirror=0/0; Dithering=0; Flip=0
Page x=4800 y=6826; AppDpi x=600 y=600; DitDpi x=600 y=600;
PrnDpi x=600 y=600; Overlay=0
Adjust Bright=100; Contrast=100; Ink=100; K=100; Y=100; C=100; M=100;
Clear Coat=Auto (0:6,0,0,0); Print Direction=Auto (1:10,0,0,0); Drying Time Between Pages=Auto (2:8,0,0,0); Paper Gap - Prevent paper abras=Default (3:3,0,0,0); Detect Paper Width=Off (4:4,0,0,0); Detect Media Mismatch=Off (5:7,0,0,0); Paper Vacuum=Auto (6:9,0,0,0);
tpfile::get_patchsample_table: paper=HP Home&Office paper
table::get_patchsample_struct: default_bright_ink set to default 100
table::get_patchsample_struct: default_black_start set to default 75
table::get_patchsample_struct: default_black_add set to default 50
patches; linmode=gamma
table::build_gamma_table: i=0 color=5 gamma=50 max=100 saturation=100
gamma 50 max 100 saturation 1000 for channel 0
correction=32767
table::build_gamma_table: i=1 color=6 gamma=50 max=100 saturation=100
gamma 50 max 100 saturation 1000 for channel 1
correction=32767
table::build_gamma_table: i=2 color=7 gamma=50 max=100 saturation=100
gamma 50 max 100 saturation 1000 for channel 2
correction=32767
matchtable->profile_datafile_version = 1
cmm::generate_memory_profile: multi3c_k_grey=1 lin_mode set to density
shadow: 0 => adjust 100 min 50/10 max 50; grey: a=0 b=0; colorspace=APPLE; cmykspace=0; intent=perceptual; M2; daylight = 6500K
limit k=0; y=0; m=0; c=0; ucr=0; gamut=0; tac=0;
matchtable->numchannels=3
cmm::generate_memory_profile: multi3c_mode=TRUE
multi_profile_switch=150 multi_c2_switch=100 multi_m2_switch=100
ucr_up=255; max_ink=765; ucr_add=128
polyfit mode=2 channels=3 terms=52 patches=215
polyfit mode=4 channels=3 terms=40 patches=622
have_brighter_grey=0
max_dens_val[GREY_BRIGHT]=32767 min_dens_val[GREY_BRIGHT]=32767 max_dens_val[GREY_BRIGHTER]=32767 min_dens_val[GREY_BRIGHTER]=32767
bright_cyan_fac=0 bright_magenta_fac=0
black_fac=0 cyan_fac=-1 magenta_fac=-1 yellow_fac=-1
init_cmyk2multichannel: c2fac=0 m2fac=0 kfac=0 photoblue=0 k2fac=0 k3fac=0 k4fac=0 multi_max_ink=768
printer white:l=941 a-004 b+009
printer white poly:l=941 a-004 b+009
printer black poly:l=255 a+008 b+032
printer darkest poly:l=255 a+008 b+032
black l=00 a+00 b+00 => l=259 a+009 b+032: K00 C98 M99 Y98 c00 m00 k00 g00 h00
black94 l=06 a+00 b+00 => l=305 a+004 b+026: K00 C94 M89 Y87 c00 m00 k00 g00 h00
black87 l=17 a+00 b+00 => l=353 a-001 b+016: K00 C86 M77 Y74 c00 m00 k00 g00 h00
black75 l=34 a+00 b+00 => l=455 a+000 b+005: K00 C58 M51 Y46 c00 m00 k00 g00 h00
black62 l=48 a+00 b+00 => l=555 a+000 b+006: K00 C40 M34 Y30 c00 m00 k00 g00 h00
black50 l=60 a+00 b+00 => l=644 a-001 b+007: K00 C27 M23 Y20 c00 m00 k00 g00 h00
black37 l=71 a+00 b+00 => l=724 a-003 b+008: K00 C18 M16 Y13 c00 m00 k00 g00 h00
black25 l=82 a+00 b+00 => l=801 a-002 b+008: K00 C10 M09 Y08 c00 m00 k00 g00 h00
black12 l=91 a+00 b+00 => l=873 a-003 b+008: K00 C04 M03 Y03 c00 m00 k00 g00 h00
white l=99 a+00 b+00 => l=941 a-004 b+009: K00 C00 M00 Y00 c00 m00 k00 g00 h00
cyan l=89 a-54 b-17 => l=792 a-155 b-200: K00 C24 M00 Y00 c00 m00 k00 g00 h00
magenta l=64 a+87 b-52 => l=659 a+510 b-107: K00 C00 M55 Y00 c00 m00 k00 g00 h00
yellow l=97 a-14 b+86 => l=911 a-122 b+687: K00 C00 M00 Y59 c00 m00 k00 g00 h00
red l=58 a+77 b+70 => l=602 a+505 b+376: K00 C00 M65 Y99 c00 m00 k00 g00 h00
green l=86 a-84 b+72 => l=751 a-358 b+478: K00 C25 M00 Y70 c00 m00 k00 g00 h00
blue l=32 a+60 b-105 => l=478 a+060 b-408: K00 C98 M35 Y00 c00 m00 k00 g00 h00
garo_info.rgb_contone_mode=8
Colormatch file=IPF1000; Curves=600dpi; Table=plain_paper
Report at end of pdrive_class::begin_page
Total memory usage=1902318
calculate_dim: print left=0 top=0 width=4800 height=6826
calculate_dim: section left=0 top=0 width=1889 height=2687
check_add_logo returned 0
Printed section of picture:
left=0 top=0 width=1889 height=2687
Printer: resolution x_dpi=600 y_dpi=600 color_mode=2
Page - printable area in printer pixels:
left=80 top=70 width=4800 height=6826
Print size in printer pixels, relative to printable area:
left=0 top=0 width=4800 height=6826
INFO: TurboPrint: printing page 1, 0% complete...
INFO: TurboPrint: printing page 1, 5% complete...
INFO: TurboPrint: printing page 1, 10% complete...
INFO: TurboPrint: printing page 1, 14% complete...
INFO: TurboPrint: printing page 1, 19% complete...
INFO: TurboPrint: printing page 1, 24% complete...
INFO: TurboPrint: printing page 1, 29% complete...
INFO: TurboPrint: printing page 1, 33% complete...
INFO: TurboPrint: printing page 1, 38% complete...
INFO: TurboPrint: printing page 1, 43% complete...
INFO: TurboPrint: printing page 1, 48% complete...
INFO: TurboPrint: printing page 1, 52% complete...
INFO: TurboPrint: printing page 1, 57% complete...
INFO: TurboPrint: printing page 1, 62% complete...
INFO: TurboPrint: printing page 1, 67% complete...
INFO: TurboPrint: printing page 1, 71% complete...
INFO: TurboPrint: printing page 1, 76% complete...
INFO: TurboPrint: printing page 1, 81% complete...
INFO: TurboPrint: printing page 1, 86% complete...
INFO: TurboPrint: printing page 1, 91% complete...
INFO: TurboPrint: printing page 1, 95% complete...
tpprint::update_ink: black_type=0 rgb_mode=0
tpprint::update_ink: black_type=0 rgb_mode=0
Time for <Profile> = 841
Time for <Color> = 111
Time for <Dither> = 52
Time for <Print> = 217
Time for <Total> = 1252
Line counters: skip=0; bitmap=0; others=2687; 8bit=0; white=101; b/w=0
Color 0 sum: 243
Color 1 sum: 226
Color 2 sum: 216
total sum: 685
pixmap_class::open: end of file reached
print_page: end of input file
Report at end of pdrivecontrol_class::release_printer
Total memory usage=0
tpprint: at end of main result=-21
lp: No file in print request.
Code: Select all
tpprint -dCanon_imagePROGRAF_Pro1000 -s10500x14850 -q1 -f3 -v2 output.pcx > output.raw
I tried ttprint with both ppm and pcx formats, same results
If you have any guidance on setting up the margins correctly in command line for bulk printing or tips on making tpprint work without generating empty output, I’d appreciate it!
I've also tried looking up the options that gutenprint saves in gpturboprintrc in ./config/GIMP but I can't figure out a way to pass those options to tpprint or lp.
Running of out ideas.
Thanks in advance for your help!