imagemagick


Introduction:

IMAGEMAGICK
is a program that can create, edit, compose or convert
graphical information as stored in many different file formats.
IMAGEMAGICK can resize, flip, mirror, rotate, distort, shear and
transform images, adjust image colors, apply various special effects,
or draw text, lines, polygons, ellipses and Bézier curves.

Web site:


https://www.imagemagick.org/script/index.php
.

Reference:

Usage:

On any ARC cluster, check the installation details
by typing "module spider imagemagick".

IMAGEMAGICK requires that a module be loaded before it can be run.
One version of the appropriate commands for use on NewRiver is:

module purge
module load ImageMagick/6.8.9
    

After this, in particular, the many IMAGEMAGICK commands such as
convert will become available.

Examples:

In the following batch file, the IMAGEMAGICK command convert
is used to suppress noise in an image, to make versions of the
image with a severely reduced number of colors, and to reverse
the image left-to-right.

#! /bin/bash
#
#PBS -l walltime=00:05:00
#PBS -l nodes=1:ppn=1
#PBS -W group_list=newriver
#PBS -q open_q
#PBS -j oe

cd $PBS_O_WORKDIR

module purge
module load ImageMagick/6.8.9

convert -noise 3 balloons_noisy.png balloons.png

convert -colors 2 balloons.png balloons2.png
convert -colors 4 balloons.png balloons4.png
convert -colors 8 balloons.png balloons8.png
convert -colors 16 balloons.png balloons16.png

convert -flop balloons.png snoollab.png

A complete set of files to carry out a similar process are available in
imagemagick_example.tar