Skip to Content
GIMP Bible
book

GIMP Bible

by Jason van Gumster, Robert Shimonski
March 2010
Beginner
761 pages
19h 50m
English
Wiley
Content preview from GIMP Bible

Chapter 22. Creating Custom Effects with Scripting

IN THIS CHAPTER

  • Getting familiar with GIMP scripting

  • Using scripting interactively

  • Creating a custom script

One of the most useful features of GIMP is its extensibility. You have ultimate control over GIMP's features because you have the ability to automate them or add new ones if necessary. For instance, quite a few examples in this book are given as a sequence of discrete steps that you have to perform in GIMP. If you find yourself repeatedly performing the same sequence of steps to get a specific effect, you can write a script to automatically perform those steps for you. It may be a bit of a cliché, but think of a script as a recipe. It's a sequence of steps used to produce a final result. In cooking, that final result might be a pie. In computer graphics, the final result may be an improved image.

To facilitate the scripting process, the developers of GIMP have included a scripting Application Programming Interface (API). A scripting API is a set of operations and tools that can be accessed from a higher-level scripting language like Scheme or Python. With an API as your specification, you don't have to dig through lines and lines of source to find the function you're looking for and you don't have to do any guesswork to figure out how your code fits in the overall source tree. You find the operations that you need and can then write a little script that automates some useful task for you. That script can then be saved for re-use ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Pro Photo Colorizing with GIMP

Pro Photo Colorizing with GIMP

Phillip Whitt
GIMP for Absolute Beginners

GIMP for Absolute Beginners

Jan Smith, Roman Joost

Publisher Resources

ISBN: 9780470523971Purchase book