headers and footers from convert

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
bjb

headers and footers from convert

Post by bjb »

I am tasked to find a way to put headers and footers on printouts made by the convert program. The option -label does the trick for headers, but I have not found anything similar for footers. Can footers be made by convert, or do I need some program between convert and lp (yes, this is on unix) to achieve this?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: headers and footers from convert

Post by anthony »

How are you using -label as a header???

See IM Examples, Annotate Images/
http://www.imagemagick.org/Usage/annotating/
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
bjb

Re: headers and footers from convert

Post by bjb »

anthony wrote:How are you using -label as a header???
The command line option I used was simply: -label "My running header"

Which produces a nice header on top of the page.
See IM Examples, Annotate Images/
http://www.imagemagick.org/Usage/annotating/
Annotate does not quite do what I need. What I need are running headers and footers disconnected from the image itself.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: headers and footers from convert

Post by anthony »

bjb wrote:The command line option I used was simply: -label "My running header"

Which produces a nice header on top of the page.
Oh, you were outputing th eimage to postscript.
A file format specific use of -label, not a general image processing operation.
bjb wrote:What I need are running headers and footers disconnected from the image itself.
That is not posible with IM postscript output. You are getting into a area much better suited to vector graphics, rather than Raster Images as IM provides.

The better idea is to use a nothing program like XFig to create a postscript document containing your labels and include normal image rather than a postscript image. There are many such object editors out there designed to generate postscript from smaller components.
However the "Fig" file format is so simple and well documented you can script up an automatic labeling program to wrap around images.

A very complex, commercial windows specific alturnative is FrontPage.

A less commonly known but just as complex is teTeX whcih can generate postscript suitable not only for a general page, but also whole books, which complex diagrams, indexing, cross referencing and mathematical expressions.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply