O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

ImageMagick Tricks

Book Description

Unleash the power of ImageMagick with this fast, friendly tutorial and tips guide

  • Complete tutorial and a gallery of tricks and techniques

  • Create impressive image manipulations and animations on-the-fly from the command line or within your programs

  • Complete PHP-based sample applications show how to use ImageMagick to add pizzazz your web site

  • In Detail

    The book is packed with interesting and fun examples. We had a lot of fun coming up with cool ways to demonstrate ImageMagick's power, and we're sure you'll have fun learning how to create them.

    Although the printed book is in black and white, there is a full colour PDF of the screenshots freely available that includes all of the images in the book. Use it to see exactly what the ImageMagick effects look like in colour, or browse through it and see just what you'll learn to do with this book.

    ImageMagick is a free software suite to create, edit, and compose bitmap images using text-based commands. The commands can be issued from the command line, but more often will be included in web or desktop applications – carrying out complex image-manipulation tasks in response to the user's input.

    ImageMagick is a popular way for generating images on-the-fly in web pages, whether it's generating thumbnails from a large image, or creating complex combinations of images, text, and effects chosen by a visitor or the web site's creator.

    This fast paced and practical tutorial is packed with examples of photo manipulations, logo creation, animations, and complete web projects. With this book up your sleeve, you'll be creating spellbinding images from code in no time

    Table of Contents

    1. ImageMagick Tricks
      1. ImageMagick Tricks
      2. Credits
      3. About the Author
      4. About the Reviewers
      5. Preface
        1. What This Book Covers
        2. Conventions
        3. Reader Feedback
        4. Customer Support
          1. Downloading the Example Code for the Book
          2. Errata
          3. Questions
      6. 1. Introduction
        1. ImageMagick Features
        2. ImageMagick’s Core Utilities
          1. Display
          2. Convert
          3. Import
          4. Animate
          5. Composite
          6. Montage
          7. Mogrify
          8. Conjure
          9. Identify
        3. Interfaces
          1. ImageMagick and X11 standard
        4. Summary
      7. 2. Installation and Configuration
        1. Where to get ImageMagick
        2. What are the Installation Requirements?
        3. Installation
            1. Binary Installers
            2. Source files
        4. How to Install ImageMagick from Binaries
          1. How to Install from UNIX-like Binary Releases
            1. How to Verify the Program Installation
          2. How to Install from a Windows Binary Release
        5. How to Install ImageMagick from Source
          1. Installing from a UNIX-like Source
            1. What are Makefiles?
            2. How to Use GNU Configure for Creating Makefiles
            3. Configure Command in Action
            4. How to Use the Make Command for LINUX
            5. How to Build ImageMagick for the VMS Platform
            6. How to Build ImageMagick for the Macintosh Platform
            7. How to Build ImageMagick for the Windows Platform
          2. How to Handle Bugs and Errors
            1. Dealing with Configuration Failures
        6. Summary
      8. 3. Convert and Mogrify
        1. Convert Syntax and Options
        2. How to Draw Basic Shapes with Convert
          1. Workshop I: Creating a Simple Logo
        3. Painting Methods
          1. Workshop II: Color Filling with draw
        4. Deformations
          1. Workshop III: Image Distortion
        5. Basic Transformations
          1. How to Rotate Drawings in ImageMagick
          2. Workshop IV: Rotating Text
          3. How to Resize Drawings in ImageMagick
          4. How to Crop Images Using ImageMagick
          5. The shave Option
          6. Inserting and Deleting Rows and Columns in Images
          7. Skewing Images
          8. Workshop V: The Flag
        6. Artistic Options
          1. Workshop VI: Applying Various Filters on an Image
        7. Mogrify Syntax and Options
          1. Workshop VII: The Card
        8. Summary
      9. 4. Composite and Montage
        1. Composite
        2. Composite Syntax and Options
          1. What is the Mask?
          2. Workshop I: Colorful Logo
          3. Composite Parameters
          4. Workshop II: 3D Button
          5. Workshop III: Fresh Candy
        3. Montage
          1. Montage Syntax and Options
          2. Workshop IV: The Montage Descriptive Options
          3. Workshop V: The Montage Adornment Options
          4. Workshop VI: The Montage Arrangement Options
          5. Workshop VII: Creating an Indexed Image Web Page
        4. Summary
      10. 5. Identify, Display, and Import
        1. Identify
          1. Identify Syntax and Options
          2. How to Extract Information from an Image
          3. How to get Brief Information from Images
          4. How to get Detailed Information from Images
          5. How to get Customized Information from Images
          6. How to Get Information about ImageMagick
        2. Display
          1. Display Syntax and Options
          2. Workshop I: Looking at Some Display Examples
        3. Import
          1. Import Syntax and Options
          2. Workshop II: Looking at Some Import Examples
        4. Summary
      11. 6. Animation
        1. Animate Syntax and Options
        2. How to Display an Animation
        3. How to Create an Animation
          1. Workshop I: Simple Type Effect
          2. Workshop II: Animated Logo
          3. Workshop III: Animated Artistic Effects
        4. How to make Complex Animations
          1. How to Split an Animation into Frames
          2. Workshop IV: Multi-Animation Files
        5. Summary
      12. 7. Conjure
        1. Conjure Syntax and Options
        2. What are the Valid Key-Value Pairs for MSL files?
          1. Workshop I: Using Multiple MSL Files in One Conjure Call
        3. Compare
          1. How to Compare Two Images
        4. Summary
      13. 8. Practical Web Projects
        1. How to call ImageMagick Command-line Utilities within PHP code
        2. How to Save the Result of an Online Image Processing Task
        3. How to Start Sessions for our Visitors
        4. Building a Confirmation-Code Box
        5. Online Image Water Marking
        6. Summary
      14. 9. An E-Card Application
        1. Wizard Step 1: How to Receive Images
          1. How to Receive Images from URLs
          2. How to Upload Images
        2. Wizard Step 2: How to Write Text on Input Images
          1. How to Show Image, Image Size, and the Required Fields for Writing Text
        3. Wizard Step 3: Final Image
        4. Summary
      15. 10. Exciting E-Card Designs
        1. E-card A: Simple Letters
        2. E-card B: Write on Curved Surfaces
        3. E-card C: Carving Technique
        4. How to Make Input Text more Flexible
        5. Creating a Parameterized Book Cover Generator Page
        6. Summary
      16. A. Install New Fonts In ImageMagick
        1. Why Don't Some Fonts Work Correctly?
        2. How to Identify the Current Installed Fonts
        3. Where to Find Fonts and Other Free Resources
            1. Free Fonts
            2. Free Photos
            3. Free Animations
        4. How to Define New Fonts for ImageMagick
      17. B. Compression In ImageMagick
        1. Compression versus Quality
        2. ImageMagick Options for Compression
        3. Lossy versus Lossless Compression Algorithms
        4. ImageMagick -compress and -quality Options