Skip to content

Manipulating Images via Command Line

Introduction

It can be very useful to manipulate images through the command line. For example, to automate tasks.

Installation

For the following manipulations, we'll need ImageMagick:

apt-get install imagemagick

Usage

Getting Information About an Image

identify -format "%wx%h" /path/to/image.jpg