Works by modifying the page size in order that the resulting image will have the size specified by the BoundingBox. As an option, a tight BoundingBox may be computed.
<psfile(s)> postscript file(s) to be converted.
OPTIONS: -A Adjust the BoundingBox to the minimum required by the image contents Append u to strip out time-stamps (produced by GMT -U options) Append - to make sure -A is NOT activated by -W -C Specify a single, custom option that will be passed on to GhostScript as is. Repeat to add several options [none]. -D Sets an alternative output directory (which must exist) [Default is same directory as PS files] Use -D. to place the output in the current directory. -E Set raster resolution in dpi [default = 720 for PDF, 300 for others] -F Force the output file name. By default output names are constructed using the input names as base, which are appended with an appropriate extension. Use this option to provide a different name, but WITHOUT extension. Extension is still determined automatically. -G Full path to your ghostscript executable. NOTE: Under Unix systems this is generally not necessary. Under Windows, ghostscript is not added to the system's path. So either you do it yourself, or give the full path here. (e.g. -Gc:programsgsgs7.05bingswin32c). -L The <listfile> is an ASCII file with names of ps files to be converted -N OBSOLETE. Use -S and/or -Te instead. -P Force Portrait mode. All Landscape mode plots will be rotated back so that they show unrotated in Portrait mode. This is practical when converting to image formats or preparing EPS or PDF plots for inclusion in documents. -Q Anti-aliasing setting for (g)raphics or (t)ext; append size (1,2,4) of sub-sampling box Default is no anti-aliasing, which is the same as specifying size 1. -S Apart from executing it, also writes the ghostscript command to standard output. -T Set output format [default is jpeg] b means BMP e means EPS f means PDF g means PNG G means PNG (with transparency) j means JPEG m means PPM t means TIF For b, g, j, t, append - to get a grayscale image [24-bit color]. The EPS format can be combined with any of the other formats. For example, -Tef creates both an EPS and PDF file. -V Provides progress report [default is silent] and shows the gdal_translate command, in case you want to use this program to create a geoTIFF file. -W Write a ESRI type world file suitable to make (e.g.) .tif files be recognized as geotiff by softwares that know how to do it. Be aware, however, that different results are obtained depending on the image contents and if the -B option has been used or not. The trouble with -B is that it creates a frame and very likely its annotations and that introduces pixels outside the map data extent. As a consequence, the map extents estimation will be wrong. To avoid this problem, use the --BASEMAP_TYPE=inside option which plots all annotations related stuff inside the image and does not compromise the coordinate computations. The world file naming follows the convention of jamming a 'w' in the file extension. So, if the output is tif (-Tt) the world file is a .tfw, for jpeg a .jgw, and so on. Use -W+g to do a system call to gdal_translate and produce a true geoTIFF image right away. The output file will have the extension .tiff See the man page for other 'gotchas'. Automatically sets -A -P. Use -W+k to create a minimalist KML file that allows loading the image in Google Earth. Note that for this option the image must be in geographical coordinates. If not, a warning is issued but the KML file is created anyway. Several modifiers allow you to specify the content in the KML file: +t<doctitle> sets the document name ["GMT KML Document"] +n<layername> sets the name of this particular layer ["GMT Image Overlay"] +a<altmode>[<altitude>] sets the altitude mode of this layer, where <altmode> is one of 5 recognized by Google Earth: G clamped to the ground [Default] g Append altitude (in m) relative to ground A Append absolute altitude (in m) s Append altitude (in m) relative to seafloor S clamped to the seafloor +l<minLOD>/<maxLOD>] sets Level Of Detail when layer should be active [always active] Image goes inactive when there are fewer than minLOD pixels or more than maxLOD pixels visible. -1 means never invisible. +f<minfade>/<maxfade>] sets distances over which we fade from opaque to transparent [no fading] +u<URL> prepands this URL to the name of the image referenced in the KML [local file]