ImageMagick Tricks


ImageMagick Tricks
eBook: $20.99
Formats: PDF, PacktLib, ePub and Mobi formats
$10.50
save 50%!
Print + free eBook + free PacktLib access to the book: $55.98    Print cover: $34.99
$34.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Support
Sample Chapters
  • 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

Chapter 3 - Convert and Mogrify

Screenshots

Book Details

Language : English
Paperback : 232 pages [ 235mm x 191mm ]
Release Date : June 2006
ISBN : 1904811868
ISBN 13 : 9781904811862
Author(s) : Sohail Salehi
Topics and Technologies : All Books, Other, Open Source, Web Graphics & Video



Table of Contents

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

Sohail Salehi

Sohail Salehi was born in Mashad, Iran in March 17, 1975. He graduated in Software Engineering from Mashad University in 2000. In recent years, Sohail has contributed to over 20 books, mainly in programming and computer graphics. He has written frequent articles for "0 & 1 Magazine"; an IT magazine from Ferdowsi University. You can find a complete list of his works at http://www.soolan.com. In the past he has worked as a Chairman in the IT department of various universities including Mashad, Ferdowsi, and the Industrial Management University. Currently he is working on the IT training standards for the Iranian "Work and Science Organisation" 2005-2006 period.

Sorry, we don't have any reviews for this title yet.

Code Downloads

Download the code and support files for this book.


Submit Errata

Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.


Errata

- 2 submitted: last submission 12 Nov 2013

Errata type: Typo | Page number: 31

In the Note relating to Windows users possibly getting a "Non-conforming..." In Windows you have to use "instead of" for commands. Replace "instead of" with 'instead of'

Errata type: Code | Page number: 34

In the first example, the 2nd line: -stroke white strokewidth:2–font Tahoma which should be: -stroke white -strokewidth 2 -font In the 3rd line, same example, it has: -fill black draw "text 3,70 which should be: -fill black -draw "text 3,70

Errata type: Code | Page number: 41

First example (under #2), needs spacing after 'rotate' value "-rotate 30-font computerfont" should be: -rotate 30 -font computerfont

Errata type: Code | Page number: 44

First example, 2nd line: ... -strokwidth 2 ... should be replaced by ... -strokewidth2

Errata type: Typo | Page number: 45

First example, 1st line: ...xc: white should be xc:white

Errata type: Typo | Page number: 53

"Convert" command should be written as "convert" command

Errata type: Typo | Page number: 57

Step 2: Place a dash(-) right before "strokewidth", and a single quotation after 391 at last line.

Errata type: Code | Page number: 58

First example, after 3rd paragraph, 2nd line: there should be a space between -border" option and "1" argument.

Errata type: Typo | Page number: 59

Step 7: "draw" option should have closing double quotes(").

Errata type: Code | Page number: 71

The "-fill" options arguments should be enclosed within quotes(").

Errata type: Code | Page number: 33

For example, we can implement the above logo using a single command as follows:
convert –size 300x150 xc: –draw 'rectangle 0,0 40,140' –draw 'rectangle 260,0 140,300' –fill white –draw 'rectangle 15,8 285,132' -fill orange –pointsize 80 –draw "text 20,95 'PACKT'" -fill black -pointsize 27 –draw "text 68,147 'PUBLISHING'" Packt_logo.gif

The command should be as follows:
convert -size 300x150 xc: -draw 'rectangle 0,0 40,140' -draw 'rectangle 260,0 300,140' -fill white -draw 'rectangle 15,8 285,132' -fill orange -pointsize 80 -draw "text 20,95 'PACKT'" -fill black -pointsize 27 -draw "text 68,147 'PUBLISHING'" Packt_logo.gif

Sample chapters

You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

Frequently bought together

ImageMagick Tricks +    Do more with SOA Integration: Best of Packt =
50% Off
the second eBook
Price for both: £7.00

Buy both these recommended eBooks together and get 50% off the cheapest eBook.

What you will learn from this book

  • Understand what ImageMagick can do and why you will want to use it
  • Install the ImageMagick software on your own computer or a server, and understand your way around it
  • Create exciting text effects and produce eye catching logos and headings for use in your pages or applications
  • Slice, dice, and filter your images turn simple photos into mind-bending designs and illusions
  • Create thumbnails by converting file types, resizing, and cropping to consistent size, aspect ratio, and format. Or create complete image catalogues with thumbnails, file names, and information combined in a single image.
  • Make your images look 3D with clever application of blurs, displacements, and masks
  • Extract information from your files such as size, compression levels, and source information
  • Use ImageMagick to create GIF animations, from simple slideshows to gradual morphs and effects
  • Generate ImageMagick scripts in MSL using the conjure utility
  • Write web applications such as an advanced e-card generator, and even create your own Packt book cover!
  • Crystal clear explanations – this might be Magick, but there's no smoke and mirrors!

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

Color images of every ImageMagick Trick available now for free!

Get your copy now from the book's Download Area

See the amazing things you can do with ImageMagick and this book.

Approach

Sohail Salehi is an experienced computer graphics artist, working with 2D, 3D, and video graphics. The book shows his techniques in action. This is no laborious walk through of ImageMagick, with one dull example after another. The chapters consist of workshops, each one applying a set of ImageMagick commands to produce surprising and exciting results. As you read the book, you will learn the features of ImageMagick as well as getting lots of inspiration and ideas for how you can use it in your own projects. You'll be amazed by the creative results you can achieve using code.

Who this book is for

Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Resources
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software