Quick hack to print images with ImageMagick

VirginSnow at vfemail.net VirginSnow at vfemail.net
Tue Dec 11 16:13:24 EST 2007


> From: Paul Lussier <p.lussier at comcast.net>
> Date: Tue, 11 Dec 2007 13:26:48 -0500

> VirginSnow at vfemail.net writes:
> 
> >  $ convert -verbose -rotate 180 -page Letter foo.gif foo.ps
> >
> > This image will come out on your printer upside down, but it'll be
> > nicely scaled to fit on Letter-size paper.
> 
> Can you please define 'upside down' ?  Do you mean reversed, or that I
> have to turn the paper over before looking at the otherwise correctly
> printed image?

That the printing will be "upside down" means that the output will be
rotated 180 degrees from your printer's normal output.

So, instead of getting:

    +--------------------+
    |                  XX|
    |     *        *     |
    |    **       **     |
    |                    |
    |  *              *  |
    |   **          **   |
    |     ***   ***      |
    |         *          |
    +--------------------+.

you will get

    +--------------------+
    |          *         |
    |      ***   ***     |
    |   **          **   |
    |  *              *  |
    |                    |
    |     **       **    |
    |     *        *     |
    |XX                  |
    +--------------------+.

That's what the "-rotate 180" in the command does.  By default,
postscript is rendered from the lower-left corner of the page.  By
rotating the output by 180 degrees, you're putting the upper-right
corner of the image (marked "XX" above) at the lower left corner of
the page, effectively making the output top- and right-justified ...if
you physically rotate the page 180 degrees and look at it "upside
down".


More information about the gnhlug-discuss mailing list