makeCommandsCovers: Generate Covers With ImageMagick

Description Usage Arguments Note

Description

This function executes ImageMagick commands to generate covers. It is a complex function.

Usage

1
2
makeCommandsCovers(df, sdir = "./", odir = "./", stockdir = "originals/",
  exec = FALSE)

Arguments

df

The author/title dataframe that we'll loop through.

sdir

The working directory, we need to be in this directory to perform ImageMagick functions. It is much easier to set now than screw with path later.

odir

The out directory. As in, where you want your new files to go.

stockdir

The directory that leads to the stock images that we'll be working with.

exec

Set to false; set to true will attempt to execute the commands in the system() interface.

Note

If exec=TRUE breaks/crashes R, you may need to make sure that R can find ImageMagick, and can also find ghostscript. The easiest way, on a Mac, is to use MacPorts. Install ImageMagick; if it doesn't work, install ghostscript. Consult the internet.


ecology-rocks/grammaR documentation built on May 15, 2019, 7:58 p.m.