Position data at top of each page

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
megamech
Posts: 6
Joined: 2019-09-17T13:41:29-07:00
Authentication code: 1152

Position data at top of each page

Post by megamech »

(edited)
How do I position everything to the top of the page rather than the bottom?

-gravity North or NorthWest displays the data off of the page because it uses the bottom left pixel as an anchor. So only -gravity SouthWest works which is the default value. If I type NorthWest it technically displays it correctly west, but places everything out of the top of the page area
Last edited by megamech on 2019-09-27T13:57:14-07:00, edited 5 times in total.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: antalias

Post by snibgo »

"-antialias" and "+antialias" are settings that affect certain operations. You are not using any of those operations, so "-antialias" and "+antialias" will have no effect.
snibgo's IM pages: im.snibgo.com
megamech
Posts: 6
Joined: 2019-09-17T13:41:29-07:00
Authentication code: 1152

Re: antalias

Post by megamech »

I needed to change geometry to 1566 to prevent it from resizing the image; distorting it. Finally figured it out after reading the page about resizing images distorts them.
Last edited by megamech on 2019-09-27T13:57:38-07:00, edited 1 time in total.
megamech
Posts: 6
Joined: 2019-09-17T13:41:29-07:00
Authentication code: 1152

Re: antalias

Post by megamech »

For some reason image magick isn't making the paper size Letter but 0.51 inch by 0.66 inch. Any ideas?
Also what's the correct spacing for left/right print margins? -geometry +75+0 ?

Also how do I align the content to the top of the page rather than the bottom. -gravity SouthWest doesn't work and center/south displays nothing before it grabs the png files by the corner instead of the center.

magick montage -tile 1x6 -geometry +0+0 -page Letter -units PixelsPerInch -density 1200x1200 -quality 100 -filter spline -unsharp 0x1 out.pdf

Thanks
Last edited by megamech on 2019-09-27T13:56:37-07:00, edited 1 time in total.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: antalias

Post by snibgo »

On "-page", see http://www.imagemagick.org/script/comma ... s.php#page . "-page Letter" is a synonym for "-page 612x792". If your density is 600 dpi then this isn't much bigger than one square inch.

I'm not sure what you want. Can you supply sample images? Perhaps "montage" doesn't do what you want, and appending might be better.
snibgo's IM pages: im.snibgo.com
megamech
Posts: 6
Joined: 2019-09-17T13:41:29-07:00
Authentication code: 1152

Re: antalias

Post by megamech »

I am appending about 5 of these to each page. Exporting as a pdf. Each image is the next set of measures. Each image is placed under the previous one. I don't really understand how I incorporate "append" into my command or replace montage with append
Last edited by megamech on 2019-09-27T13:53:28-07:00, edited 1 time in total.
megamech
Posts: 6
Joined: 2019-09-17T13:41:29-07:00
Authentication code: 1152

Re: antalias

Post by megamech »

I decided to go with the montage command
Last edited by megamech on 2019-09-27T13:54:16-07:00, edited 1 time in total.
megamech
Posts: 6
Joined: 2019-09-17T13:41:29-07:00
Authentication code: 1152

Re: Position data at top of each page

Post by megamech »

Finally got everything working. Had to increase the memory to 5GB for 1200DPI
Post Reply