Print large image across multiple sheets

2010-03-28 Thread Roy Britten
I have a largish (~12000 pixels square) image that I want to print at
a defined scale across multiple sheets. I'm comfortable using Image
Magick to split the image into appropriately-sized chunks, but am at a
bit of a loss when it comes to forcing 300dpi at printing time.

It would be wonderful if someone has already produced a tool that
takes an image and paginates it into, say, PDFs at a defined
resolution. My google-fu has failed to find such a tool. Suggestions?

Cheers,
Roy.


Re: Print large image across multiple sheets

2010-03-28 Thread Volker Kuhlmann
On Sun 28 Mar 2010 19:15:06 NZDT +1300, Roy Britten wrote:

 I have a largish (~12000 pixels square) image that I want to print at
 a defined scale across multiple sheets. I'm comfortable using Image
 Magick to split the image into appropriately-sized chunks, but am at a
 bit of a loss when it comes to forcing 300dpi at printing time.

You are looking for the netpbm package. The command arguments are a bit
of PITA though, you get the distinct impression it was designed by
Americans. You may create PostScript first, which doesn't matter because
you can convert that to PDF easily.

Volker

-- 
Volker Kuhlmann
http://volker.dnsalias.net/ Please do not CC list postings to me.


Re: Print large image across multiple sheets

2010-03-28 Thread Christopher Sawtell
On 28 March 2010 19:45, Volker Kuhlmann list0...@paradise.net.nz wrote:
 On Sun 28 Mar 2010 19:15:06 NZDT +1300, Roy Britten wrote:

 I have a largish (~12000 pixels square) image that I want to print at
 a defined scale across multiple sheets. I'm comfortable using Image
 Magick to split the image into appropriately-sized chunks, but am at a
 bit of a loss when it comes to forcing 300dpi at printing time.

 You are looking for the netpbm package. The command arguments are a bit
 of PITA though, you get the distinct impression it was designed by
 Americans. You may create PostScript first, which doesn't matter because
 you can convert that to PDF easily.

 Volker

 --
 Volker Kuhlmann
 http://volker.dnsalias.net/     Please do not CC list postings to me.


Also

http://home.clara.net/nox/software/epssplit/ps_poster.tar.gz

http://home.clara.net/nox/software/epssplit/poster.tar.gz

-- 
Sincerely etc.
Christopher Sawtell


Re: Print large image across multiple sheets

2010-03-28 Thread Jim Cheetham
On Sun, Mar 28, 2010 at 7:15 PM, Roy Britten roy.brit...@gmail.com wrote:
 I have a largish (~12000 pixels square) image that I want to print at
 ...
 It would be wonderful if someone has already produced a tool that
 takes an image and paginates it into, say, PDFs at a defined
 resolution. My google-fu has failed to find such a tool. Suggestions?

As an online service, try this wonderful site :-
http://homokaasu.org/rasterbator/

-jim


Re: Print large image across multiple sheets

2010-03-28 Thread Roy Britten
On 28 March 2010 20:12, Jim Cheetham j...@gonzul.net wrote:
 On Sun, Mar 28, 2010 at 7:15 PM, Roy Britten roy.brit...@gmail.com wrote:
 I have a largish (~12000 pixels square) image that I want to print at
 ...
 It would be wonderful if someone has already produced a tool that
 takes an image and paginates it into, say, PDFs at a defined
 resolution. My google-fu has failed to find such a tool. Suggestions?

 As an online service, try this wonderful site :-
 http://homokaasu.org/rasterbator/

 -jim


Thanks for the pointer. Unfortunately I suspect that uploading my 67MB
file may take a little longer than I've the patience for, or the web
server's timeout would allow.


Re: Print large image across multiple sheets

2010-03-28 Thread Roy Britten
On 28 March 2010 19:45, Volker Kuhlmann list0...@paradise.net.nz wrote:
 On Sun 28 Mar 2010 19:15:06 NZDT +1300, Roy Britten wrote:

 I have a largish (~12000 pixels square) image that I want to print at
 a defined scale across multiple sheets. I'm comfortable using Image
 Magick to split the image into appropriately-sized chunks, but am at a
 bit of a loss when it comes to forcing 300dpi at printing time.

 You are looking for the netpbm package. The command arguments are a bit
 of PITA though, you get the distinct impression it was designed by
 Americans. You may create PostScript first, which doesn't matter because
 you can convert that to PDF easily.

Cheers. I'll have a hunt through the documentation for the switches
for forcing the correct resolution.


Re: Print large image across multiple sheets

2010-03-28 Thread Roy Britten
On 28 March 2010 19:57, Christopher Sawtell csawt...@gmail.com wrote:
 http://home.clara.net/nox/software/epssplit/ps_poster.tar.gz

 http://home.clara.net/nox/software/epssplit/poster.tar.gz

Cheers Chris. I'm still working on creating an EPS at the correct
resolution, but if I can crack that nut then poster should do the
trick nicely.


Re: Print large image across multiple sheets

2010-03-28 Thread Jim Cheetham
On Sun, Mar 28, 2010 at 9:07 PM, Roy Britten roy.brit...@gmail.com wrote:
 On 28 March 2010 20:12, Jim Cheetham j...@gonzul.net wrote:
 http://homokaasu.org/rasterbator/

 Thanks for the pointer. Unfortunately I suspect that uploading my 67MB

It's downloadable and installable. It's written for .Net 1.1, and is
reported to run OK on Ubuntu Feisty, at least ...
http://arje.net/rasterbator_on_mac

However, it's probably not what you really want anyway, as it really
wants to re-render your picture, and I gather you already have the
detail you require and are just trying to print it out :-)

-jim


Re: Print large image across multiple sheets

2010-03-28 Thread Steve Holdoway
On Sun, 2010-03-28 at 19:15 +1300, Roy Britten wrote:
 I have a largish (~12000 pixels square) image that I want to print at
 a defined scale across multiple sheets. I'm comfortable using Image
 Magick to split the image into appropriately-sized chunks, but am at a
 bit of a loss when it comes to forcing 300dpi at printing time.
 
 It would be wonderful if someone has already produced a tool that
 takes an image and paginates it into, say, PDFs at a defined
 resolution. My google-fu has failed to find such a tool. Suggestions?
 
 Cheers,
 Roy.
Can't you do this with postscript...  - anymap - ps - play with
ghostscript / output to lpr?

eg 
pngtopnm myimage.png | pnmtops -dpi 300  myimage.ps

-- 
Steve Holdoway st...@greengecko.co.nz
http://www.greengecko.co.nz
MSN: st...@greengecko.co.nz
GPG Fingerprint = B337 828D 03E1 4F11 CB90  853C C8AB AF04 EF68 52E0


signature.asc
Description: This is a digitally signed message part


Old SCSI Hard-disk wanted

2010-03-28 Thread Andre Renaud
Hi,
Does anyone have an older SCSI hard disk (SCSI-2 preferrably). One of
the ones with a 50-way IDC connector (Similar to the 40-way parallel IDE
connectors prior to SATA). I'm more than happy to pay for it.

I've tried to find them on trademe, but they are just too old for people
to bother I think.

On a linux related front, we need this to test our Linux based SCSI device.

Please contact me off-list.

Regards,
Andre


Re: Ditto: OT: Free external 56k modem

2010-03-28 Thread Don Robertson

On 17/03/10 11:59, Chris Downie wrote:

I too have a modem free to a good home. It's a Dynalink e-modem (1456VQE-C).
Complete, in original box. Please contact me off-list if you want it.

Cheers,
Chris

   
Hi - any modems still available? I know someone trying to get a winmodem 
running and they are having problems with drivers etc.


If anyone has a spare modem that runs on Ubuntu, I can find it a good home.

Don

BTW - no idea whats wrong.

--
__
Don Robertson
Information and Communications Technology
d...@robertson.net.nz  www.robertson.net.nz
021 294 1452  03 322 8172



Re: Reducing log file noise

2010-03-28 Thread Craig Falconer

Tom Munro Glass wrote, On 29/03/10 11:11:
Mar 28 22:56:50 localhost init: Id ACM0 respawning too fast: disabled for 5 
minutes


Your problem is that init is bringing up the process and failing.  Not 
that its logging too much.




--
Craig Falconer



Re: Reducing log file noise

2010-03-28 Thread Tom Munro Glass
On Mon, 29 Mar 2010 11:19:33 Craig Falconer wrote:
 Tom Munro Glass wrote, On 29/03/10 11:11:
  Mar 28 22:56:50 localhost init: Id ACM0 respawning too fast: disabled
  for 5 minutes
 
 Your problem is that init is bringing up the process and failing.  Not
 that its logging too much.

Thanks Craig - I figured that was the problem. Is there a way of making init 
quieter? Associated with this, is there a way of changing the disabled period 
from 5 minutes?

Tom


Re: Reducing log file noise

2010-03-28 Thread Solor Vox
I'd suggest using a udev rule that runs simple script to enable/disable your
tty.  All you'd need to do is match your modem in a udev rule and call a
script to change your inittab.

That way it only runs if/when the modem is plugged-in.

Cheers,
sV



On 29 March 2010 11:10, Tom Munro Glass gen...@tmgcon.com wrote:

 A client is deploying several CentOS machines to remote sites, some of
 these
 have broadband access but some use dial-up for remote administration. Part
 of
 the standard configuration is to install a USB modem driver and to add the
 following line to /etc/inittab:

 ACM0:2345:respawn:/sbin/mgetty -x 0 -n 6 -D ttyACM0

 to allow us to dial into the machine.

 This is fine *IF* the USB modem is physically installed and being used, but
 on
 sites using broadband where a modem is not usually installed
 /var/log/messages
 fills up with a large amount of the following:

 Mar 28 22:56:50 localhost mgetty[4828]: mod: cannot open line /dev/ttyACM0:
 Input/output error
 Mar 28 22:56:50 localhost mgetty[4828]: open device /dev/ttyACM0 failed:
 Input/output error
 Mar 28 22:56:50 localhost mgetty[4828]: cannot get terminal line
 dev=ttyACM0,
 exiting: Input/output error
 Mar 28 22:56:50 localhost init: Id ACM0 respawning too fast: disabled for
 5
 minutes

 Similar messages are also written to /var/log/mgetty.log.ttyACM0.

 You might think the obvious solution is to not set up the modem if it's not
 being used, but this isn't what the client wants. The CentOS machine is
 headless, and in the event of a broadband failure we need an engineer to be
 able to simply plug in a modem to give us remote access to it.

 So, is there some way of reducing the amount of messages ending up in the
 log
 files? I have already added '-x 0' to minimise output from mgetty but the
 messages shown above are still getting through.

 Tom Munro Glass




Re: Reducing log file noise

2010-03-28 Thread Craig Falconer

Tom Munro Glass wrote, On 29/03/10 11:24:

On Mon, 29 Mar 2010 11:19:33 Craig Falconer wrote:

Tom Munro Glass wrote, On 29/03/10 11:11:

Mar 28 22:56:50 localhost init: Id ACM0 respawning too fast: disabled
for 5 minutes



Your problem is that init is bringing up the process and failing.  Not
that its logging too much.


Thanks Craig - I figured that was the problem. Is there a way of making init 
quieter? Associated with this, is there a way of changing the disabled period 
from 5 minutes?


I think you're patching the symptom, not the cause.  init's job to to 
make sure certain processes are running.


Perhaps udev is your answer instead of init - if the modem is found then 
run something, otherwise don't.



--
Craig Falconer



Re: Reducing log file noise

2010-03-28 Thread Tom Munro Glass
On Mon, 29 Mar 2010 11:25:12 Solor Vox wrote:
 I'd suggest using a udev rule that runs simple script to enable/disable
 your tty.  All you'd need to do is match your modem in a udev rule and
 call a script to change your inittab.
 
 That way it only runs if/when the modem is plugged-in.
 
 Cheers,
 sV
 
This sounds like a good solution - could you possibly give me a pointer on how 
to write the udev rule, because I haven't done this before? When the modem is 
plugged in the device is /dev/ttyACM0, and the driver module is cdc_acm. 

Will this run as root, because the script would need to patch /etc/inittab and 
then call 'telinit q'?

Tom


Re: Reducing log file noise

2010-03-28 Thread Steve Holdoway
On Mon, 2010-03-29 at 11:39 +1300, Tom Munro Glass wrote:
 On Mon, 29 Mar 2010 11:25:12 Solor Vox wrote:
  I'd suggest using a udev rule that runs simple script to enable/disable
  your tty.  All you'd need to do is match your modem in a udev rule and
  call a script to change your inittab.
  
  That way it only runs if/when the modem is plugged-in.
  
  Cheers,
  sV
  
 This sounds like a good solution - could you possibly give me a pointer on 
 how 
 to write the udev rule, because I haven't done this before? When the modem is 
 plugged in the device is /dev/ttyACM0, and the driver module is cdc_acm. 
You need the device ID - lsusb to list.

http://www.reactivated.net/writing_udev_rules.html


 
 Will this run as root, because the script would need to patch /etc/inittab 
 and 
 then call 'telinit q'?
No... the udev rule is instead of, not to enable inittab. If you really
need the always up testing functionality, then maybe look at DJB's
daemon tools. 
 
 Tom

I can't believe I've just recommended some of Dan's software. Off for a
lie down!

Cheers,

Steve


-- 
Steve Holdoway st...@greengecko.co.nz
http://www.greengecko.co.nz
MSN: st...@greengecko.co.nz
GPG Fingerprint = B337 828D 03E1 4F11 CB90  853C C8AB AF04 EF68 52E0


signature.asc
Description: This is a digitally signed message part


Re: Reducing log file noise

2010-03-28 Thread Tom Munro Glass
 You need the device ID - lsusb to list.
 
 http://www.reactivated.net/writing_udev_rules.html
 
  Will this run as root, because the script would need to patch
  /etc/inittab and then call 'telinit q'?
 
 No... the udev rule is instead of, not to enable inittab. If you really
 need the always up testing functionality, then maybe look at DJB's
 daemon tools.
 
  Tom
 
 I can't believe I've just recommended some of Dan's software. Off for a
 lie down!
 
 Cheers,
 
 Steve

Thanks for the link Steve, and I think I now understand how to write the udev 
rule with the RUN+= assignment. What I don't understand is what to put in the 
script that I call since it has to return very quickly or detach itself. 

Do I just need to launch mgetty if the udev ACTION=add or kill mgetty if 
ACTION=remove? Presumably mgetty will still call ppp once a call comes in, and 
the rest of the dial-up settings remain the same.

Tom


Re: Print large image across multiple sheets

2010-03-28 Thread Stephen Irons
On Sun, 2010-03-28 at 19:15 +1300, Roy Britten wrote:

 I have a largish (~12000 pixels square) image that I want to print at
 a defined scale across multiple sheets. I'm comfortable using Image
 Magick to split the image into appropriately-sized chunks, but am at a
 bit of a loss when it comes to forcing 300dpi at printing time.
 
 It would be wonderful if someone has already produced a tool that
 takes an image and paginates it into, say, PDFs at a defined
 resolution. My google-fu has failed to find such a tool. Suggestions?
 
 Cheers,
 Roy.


In ImageMagick, the command-line parameter to set the image resolution
is 'density'; this inserts the desired image resolution (in dots per
inch or whatever) into the file -- provided that the file supports the
idea of image resolution in dpi. JPEG files do.

The program 'poster' takes a PS file and splits it up into bits. I use
it for printing a PCB component overlay at up to 8x full size to make it
easier to identify those tiny surface mount resistor.

  * pdftops file.pdf file.ps
  * poster -v -i410x220+10,95mm -ma3 -c2% -s2 -o file-2x.ps
  * ps2pdf file-2x.ps file-2x.pdf


Note that this starts from a PDF file, so you should use another filter
to convert your input to a PS file.

These command line option mean:

  * -i: the size of the bounding box of the input image. I wanted to
enlarge only a portion of the image
  * -m: the size of the output media
  * -c: the amount of overlap (cut size)
  * -s: linear scaling size
  * -o: output file name


Stephen Irons


Re: Print large image across multiple sheets

2010-03-28 Thread Roy Britten
On 29 March 2010 09:18, Jim Cheetham j...@gonzul.net wrote:
 On Sun, Mar 28, 2010 at 9:07 PM, Roy Britten roy.brit...@gmail.com wrote:
 On 28 March 2010 20:12, Jim Cheetham j...@gonzul.net wrote:
 http://homokaasu.org/rasterbator/

 Thanks for the pointer. Unfortunately I suspect that uploading my 67MB

 It's downloadable and installable.

Even the downloadable version couldn't cope with my (large) image.
Couldn't see an option to force DPI either.

Thanks for the pointer though.

Cheers,
Roy.


Re: Old SCSI Hard-disk wanted

2010-03-28 Thread Christopher Sawtell
Molten Media

On 29 March 2010 10:09, Andre Renaud an...@bluewatersys.com wrote:
 Hi,
 Does anyone have an older SCSI hard disk (SCSI-2 preferrably). One of
 the ones with a 50-way IDC connector (Similar to the 40-way parallel IDE
 connectors prior to SATA). I'm more than happy to pay for it.

 I've tried to find them on trademe, but they are just too old for people
 to bother I think.

 On a linux related front, we need this to test our Linux based SCSI device.

 Please contact me off-list.

 Regards,
 Andre




-- 
Sincerely etc.
Christopher Sawtell