Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Working with Linux ??? Quick Hacks for the Command Line

You're reading from   Working with Linux ??? Quick Hacks for the Command Line Command line power like you've never seen

Arrow left icon
Product type Paperback
Published in May 2017
Publisher Packt
ISBN-13 9781787129184
Length 222 pages
Edition 1st Edition
Tools
Concepts
Arrow right icon
Authors (2):
Arrow left icon
Bogdan Vaida Bogdan Vaida
Author Profile Icon Bogdan Vaida
Bogdan Vaida
Petru I»ôfan Petru I»ôfan
Author Profile Icon Petru I»ôfan
Petru I»ôfan
Arrow right icon
View More author details
Toc

Shrinking spells and other ImageMagick

In this chapter, we will learn how to process images from the command line. We will start with the most complex and widely used image command line interface processing toolkit called ImageMagick. To install it, run the following:

sudo apt install imagemagick
Shrinking spells and other ImageMagick

As you can see, we have already installed it.

Now, let's find some images to process. Let's use the default Ubuntu backgrounds that can be found in /usr/share/backgrounds. Let's copy the backgrounds to another location so that we don't alter our default ones.

We'll take a look at the first image in our list: we can see from ls that it is a JPEG image of 1.6 MB. To open it and see how it looks, let's use the eog (eye of gnome) image viewer:

Shrinking spells and other ImageMagick

The first and most important part of knowing how to process an image is knowing what that image actually is. To find this out, ImageMagick comes with a tool called identify. In its simplest form, you have to feed it an image name and...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime