On Sun, 31 Jan 2010, Jon X wrote:
> I'm running into a big issue when trying to make a series of TIFF or JPG images into a single PDF document. I've
> previously done with a few times without error, but now, suddenly, I can't make any at all. Terminal looks like
> this:
>
> gm convert *.jpg -adjoin -compress JPEG single_var_calc_larson.pdf
> bus error.
>
> Samething happens if I use a TIFF file instead. Its extremely important that I be able to make PDF's from photo
> scanned images, and I have no idea what could be causing this problem.
The most likely cause of a mysterious problem is a shortage of
resources. Probably your temporary file area has become full or is
too small. Temporary files are used if there is not enough memory
available to contain all of the decoded images.
The temporary files could be stored in /var/tmp, /tmp, the directory
indicated by $TMPDIR or $MAGICK_TMPDIR. GraphicsMagick temporary
files always begin with 'gm'.
If the temporary file space is too small, or the temporary file
directory steals/subtracts from available memory (not uncommon), then
you can set MAGICK_TMPDIR to a directory with a whole lot of space.
For example use
export MAGICK_TMPDIR=/my/big/directory
before invoking GraphicsMagick in the same shell.
In order to see the temporary files which are allocated and
dealocated, you can add '-debug TemporaryFile'. For example:
gm convert -debug TemporaryFile *.jpg -adjoin -compress JPEG single_var_calc_larson.pdf
Bob
--
Bob Friesenhahn
bfriesen@..., http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
|