montagePngs
Return to directory of Todd's CASA extensions
Takes 2, 3 or 4 pngs, and puts them onto one page as a new png. See also
montageTwoPngLists.
Usage:
au.montagePngs(png1, png2, outname, sidebyside=True, png3=None, geometry=None,
trim=True, spacing=2, background='black', png4=None, border2=None,
montage='montage', crop2=None, splice2=None, tile='')
Inputs:
- sidebyside: if False, then put them one atop the other.
- trim: if True, pass '-trim' to the montage commands
- background: the color to use in the '-background' option of the montage commands
- spacing: the gap between pngs, in pixels (if geometry is not specified)
- border2: add the specified border to the second image, units=pixels
- geometry: the string to use in the '-geometry' option of the montage commands
- format = 'WidthOfSingleImage x HeightOfSingleImage + Xgap + Ygap'
- example = '900x600+20+20' for a 2x2 grid of imview square images
- montage: the path to use to find the montage executable
- crop2: string for the convert -crop option, to be run after -border
- splice2: string for the convert -splice option, to be run after -crop
- tile: override the automatic tiling selection, e.g. '1X4' (instead of '2X2')
Example:
--
ToddHunter - 2014-10-21