Re: Print large image across multiple sheets

2010-03-30 Thread Christopher Sawtell
On 30 March 2010 17:22, Roy Britten roy.brit...@gmail.com wrote:
 On 30 March 2010 16:21, Stephen Irons stephen.ir...@taitradio.com wrote:
 The original Topo50 TIFFs include legends, borders, etc. Presumably, the
 OP wants to cut the borders, create a single large image for the whole
 region, then divide it up into suitable pieces for printing on an A3 or
 A4 printer.

 Precisely. Well stated.

 Current status:

 Image Magick to crop and combine images.
 ImageMagick (with -density) to convert to EPS
 poster to split into pieces
 ps2pdf to convert to an easily shareable format

 Currently the ps2pdf step is applying what looks like JPEG compression
 to the images, so I need to look closely at the options there (I've
 done it before, but *ages* ago and have forgotten all I ever knew) to
 use no or lossless compression.


For the sake of the thread archive.
There are several Linux / Unix  PostScript to Portable Document Format
converters. To whit:-

PStill:-
http://www.wizards.de/~frank/pstill.html

ps2pdf which is part of the GhostScript package:-
http://sourceforge.net/projects/ghostscript/
http://pages.cs.wisc.edu/~ghost/

pstopdf which is part of the TeX system
http://www.tug.org/texlive/
( The easiest way to get pstopdf is to install a _full_ TeX system )

Each one has its own different plusses and minusses.
Deciding which is best for a particular purpose is left as an exercise
for the reader.

HTH

-- 
Sincerely etc.
Christopher Sawtell


Re: Print large image across multiple sheets

2010-03-30 Thread dave
Don't know if it will help but i've got a 24 430mm epson wide format print I 
could loan to you (ergo you come into work i fire up the best out pops the 
printed image.

Dunno if that will stop some of the pain or not.

Dave.

Gimme a ring 3482506 (office phone)

On Tue, 30 Mar 2010 17:14:44 you wrote:
 On 30 March 2010 16:51, Craig Falconer cfalco...@totalteam.co.nz wrote:
  I know it might be considered a bit analogue, but have you thought about
  buying the printed topomap for the area?
 
 That's the ideal, but (maybe I didn't mention earlier in the thread)
 it would take 6 of them to cover the area I need.
 
 Besides, where's the fun in that?
 
 Cheers,
 Roy.
 


Re: Print large image across multiple sheets

2010-03-29 Thread Roy Britten
 Can't you do this with postscript...  - anymap - ps - play with
 ghostscript / output to lpr?

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

Tried, with and without -equalpixels. Got a corrupt or incorrectly
encoded .ps with no usable image.

Who'd have thunk it was this hard? I might have to give up and ask a
Mac user for help.

Thanks for the suggestions,
Roy.


Re: Print large image across multiple sheets

2010-03-29 Thread Steve Holdoway
On Mon, 2010-03-29 at 23:06 +1300, Roy Britten wrote:
  Can't you do this with postscript...  - anymap - ps - play with
  ghostscript / output to lpr?
 
  eg
  pngtopnm myimage.png | pnmtops -dpi 300  myimage.ps
 
 Tried, with and without -equalpixels. Got a corrupt or incorrectly
 encoded .ps with no usable image.
 
 Who'd have thunk it was this hard? I might have to give up and ask a
 Mac user for help.
 
 Thanks for the suggestions,
 Roy.
If it's a huge image, are you running out of resources Roy??




Re: Print large image across multiple sheets

2010-03-29 Thread Roy Britten
 If it's a huge image, are you running out of resources Roy??

I'm paging pretty heavily at times, but never using even half the
available swap space.

The image was created on the same machine with no real problems.


Re: Print large image across multiple sheets

2010-03-29 Thread Christopher Sawtell
On 29 March 2010 23:06, Roy Britten roy.brit...@gmail.com wrote:
 Can't you do this with postscript...  - anymap - ps - play with
 ghostscript / output to lpr?

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

 Tried, with and without -equalpixels. Got a corrupt or incorrectly
 encoded .ps with no usable image.

 Who'd have thunk it was this hard? I might have to give up and ask a
 Mac user for help.

In that case you might care to take you file to one of the sign and
poster printing houses and get it professionally printed on a single
piece of paper / plasstic.



-- 
Sincerely etc.
Christopher Sawtell


Re: Print large image across multiple sheets

2010-03-29 Thread Roy Britten
 In that case you might care to take you file to one of the sign and
 poster printing houses and get it professionally printed on a single
 piece of paper / plasstic.

Ah, that was my original plan, right up to the point where I found out
how much they charge...

Cheers,
Roy.


Re: Print large image across multiple sheets

2010-03-29 Thread Robert Fisher

Roy Britten wrote:

In that case you might care to take you file to one of the sign and
poster printing houses and get it professionally printed on a single
piece of paper / plasstic.


Ah, that was my original plan, right up to the point where I found out
how much they charge...

Cheers,
Roy.


Several of the models sold by my employer have a poster mode which can 
tile enlarged pages. I will check to see if we have one at work at the 
moment and possibly do it for you.


Rob


Re: Print large image across multiple sheets

2010-03-29 Thread Craig Falconer

Roy Britten wrote, On 29/03/10 23:31:

The image was created on the same machine with no real problems.


So what created the image?  I'm guessing its a map.


--
Craig Falconer



Re: Print large image across multiple sheets

2010-03-29 Thread Roy Britten
 So what created the image?  I'm guessing its a map.

Yes, it is.

Created with Image Magick from a number of TIFFs obtained from the
LINZ web site (where all the new 1:50,000 series maps are available
for download). I have to stitch together 6 maps to cover the tramp I'm
doing later this year.

Cheers,
Roy.


Re: Print large image across multiple sheets

2010-03-29 Thread Craig Falconer

Roy Britten wrote, On 30/03/10 10:50:

Created with Image Magick from a number of TIFFs obtained from the
LINZ web site (where all the new 1:50,000 series maps are available
for download). I have to stitch together 6 maps to cover the tramp I'm
doing later this year.


So - why combine it to split it ?

Can you just print the 6 original pieces ?


--
Craig Falconer



Re: Print large image across multiple sheets

2010-03-29 Thread Stephen Irons
On Tue, 2010-03-30 at 12:09 +1300, Craig Falconer wrote:
 Roy Britten wrote, On 30/03/10 10:50:
  Created with Image Magick from a number of TIFFs obtained from the
  LINZ web site (where all the new 1:50,000 series maps are available
  for download). I have to stitch together 6 maps to cover the tramp I'm
  doing later this year.
 
 So - why combine it to split it ?
 
 Can you just print the 6 original pieces ?
 
 

The original Topo50 TIFFs include legends, borders, etc. Presumably, the
OP wants to cut the borders, create a single large image for the whole
region, then divide it up into suitable pieces for printing on an A3 or
A4 printer.

You say you used Image Magick to combine the TIFFs. Why not use Image
Magick to divide it up again? If your computer can contain the whole
combined image in Image Magick, then ImageMagick has the wherewithal to
output different parts of the image into separate files.

You then have the problem of making the bits print out at the correct
size (300 ppi). Use the -density command line option to set the
resolution in dots per inch. 

Many image viewing programs will honour this value and give you the
option of printing at the specified resolution.

Except for Acrobat Reader, I do not know of a PDF or PS viewer that lets
you specify the size to print. They all seem to scale to fit the entire
sheet.

Stephen Irons




Re: Print large image across multiple sheets

2010-03-29 Thread Craig Falconer

Roy Britten wrote, On 29/03/10 23:57:

In that case you might care to take you file to one of the sign and
poster printing houses and get it professionally printed on a single
piece of paper / plasstic.


Ah, that was my original plan, right up to the point where I found out
how much they charge...


I know it might be considered a bit analogue, but have you thought about 
buying the printed topomap for the area?


mapworld in 255 Manchester Street (0800 627 967) should have what you need.


--
Craig Falconer





Topo50 map viewer [Was Re: Print large image across multiple sheets]

2010-03-29 Thread Stephen Irons
On Tue, 2010-03-30 at 16:21 +1300, Stephen Irons wrote:

 On Tue, 2010-03-30 at 12:09 +1300, Craig Falconer wrote:
  Roy Britten wrote, On 30/03/10 10:50:
   Created with Image Magick from a number of TIFFs obtained from the
   LINZ web site (where all the new 1:50,000 series maps are available
   for download). I have to stitch together 6 maps to cover the tramp I'm
   doing later this year.
  

snip


Maybe it is time to update my browser-based map viewer.

I inherited an original CD containing the 260- and 262-series of
topographic maps of South Island. Unfortunately, the viewer was
Windows-based, and I wanted something that would run under Linux.

The maps themselves are JPEG image tiles which the viewer pieces
together in much the same way as Google Maps.

I looked at GSIV (the giant-ass image viewer). This is lets you divide a
big image up into tiles, then provides a browser-based Javascript viewer
to piece them together. It worked, and I even managed to get it to print
the coordinates in pixel position (on the screen, and on the map as a
whole), as well as position in NZMG coordinates, which is just a linear
scaling of the pixel position on the map.

However, it was getting very unwieldy, and I wanted to get lat/lon
position; the calculations were very difficult in Javascript.

By this time, the OpenLayers project had progressed and become very
useful. This is a general purpose browser-based map viewer. It can read
map images from a number of places (Google maps, Yahoo, Microsoft, Open
Street Map, etc), as well as used tile-based maps. I created a map layer
that works with the 260- and 262-series map tiles from the CD. 

There was a bit of work in getting it to transform the coordinates from
pixel position to NZMG and vice versa, but they have a standard way of
naming and implementing this type of transform. The conversion to and
from NZMG is now part of that project, so anyone can use it. And once
the transform was implemented, then any of the standard coordinate
systems become available. Great.

However, it uses the old 260- and 262-series maps. The images are
copyright of the people who created the CD. I do not have a problem
using them for myself, but did not feel comfortable sharing them with
friends, etc.

But now LINZ has released the Topo50 and Topo250 series TIFFs with a
gratis licence, I can share them with friends. The licence says 'You are
welcome to reproduce LINZ maps at no cost...the following
acknowledgement should be shown on the product and associated media...'.
Not a free licence, but at least I can give them to friends.

So, the project becomes:

* Download the 31 Topo250 maps and the 451 Topo50 maps. The two I have
donwloaded are about 50 MB (lots of plain blue sea) and 90 MB (lots of
contour lines). Assuming an average of 90 MB, this gives a total of
about 40 GB. Have to do this over a period of time...

* Remove the borders, legends, etc.

* Divide into tiles of a suitable size. Can the tiles be compressed to
conserve space? How can it fit onto one DVD?

* Create an OpenLayers layer that knows how to find a given tile for a
position in a suitable coordinate system.

* Viola. A cross-platform map viewer for Topo50 and Topo250 maps.

I guess the way to download the original maps is to put in place a
script that downloads a map, removes the borders and splits it into
separate tiles. Then whenever I need a map of a particular area,
download the one or two original maps needed, and create the tiles from
it.

Stephen Irons



Re: Print large image across multiple sheets

2010-03-29 Thread Roy Britten
On 30 March 2010 16:51, Craig Falconer cfalco...@totalteam.co.nz wrote:
 I know it might be considered a bit analogue, but have you thought about
 buying the printed topomap for the area?

That's the ideal, but (maybe I didn't mention earlier in the thread)
it would take 6 of them to cover the area I need.

Besides, where's the fun in that?

Cheers,
Roy.


Re: Print large image across multiple sheets

2010-03-29 Thread Roy Britten
On 30 March 2010 16:21, Stephen Irons stephen.ir...@taitradio.com wrote:
 The original Topo50 TIFFs include legends, borders, etc. Presumably, the
 OP wants to cut the borders, create a single large image for the whole
 region, then divide it up into suitable pieces for printing on an A3 or
 A4 printer.

Precisely. Well stated.

Current status:

Image Magick to crop and combine images.
ImageMagick (with -density) to convert to EPS
poster to split into pieces
ps2pdf to convert to an easily shareable format

Currently the ps2pdf step is applying what looks like JPEG compression
to the images, so I need to look closely at the options there (I've
done it before, but *ages* ago and have forgotten all I ever knew) to
use no or lossless compression.

Cheers,
Roy.


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


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.