trimImage: Trim the whitespace around an image using Imagemagick

View source: R/plotting_misc.R

trimImageR Documentation

Trim the whitespace around an image using Imagemagick

Description

This function takes a filename for an image, which will then be processed using the trim command in imagemagick to remove the surrounding whitespace

Usage

trimImage(file.name, debug = F)

Arguments

debug

Optional: Print out imagemagick convert command

file.name:

The location of the file

Examples

## Not run: 
file.name = 'test.png';
svg(file.name)
plot(1:10)
graphics.off()
trimImage(file.name)

## End(Not run)

mbergins/BerginskiRMisc documentation built on Aug. 5, 2022, 4:16 a.m.