Perl Graphics Programming: Creating SVG, SWF (Flash), JPEG and PNG files with Perl

Perl Graphics Programming: Creating SVG, SWF (Flash), JPEG and PNG files with Perl

by Shawn Wallace
Perl Graphics Programming: Creating SVG, SWF (Flash), JPEG and PNG files with Perl

Perl Graphics Programming: Creating SVG, SWF (Flash), JPEG and PNG files with Perl

by Shawn Wallace

Paperback

$39.99 
  • SHIP THIS ITEM
    Qualifies for Free Shipping
    Choose Expedited Shipping at checkout for delivery by Thursday, April 4
  • PICK UP IN STORE
    Check Availability at Nearby Stores

Related collections and offers


Overview

Graphics programmers aren't the only ones who need to be proficient with graphics. Web and applications programmers know that a dull web page can be quickly transformed into one that's interesting and lively with the use of well-planned graphics. And fortunately, you don't need the skills of a fulltime graphics programmer to use graphics effectively. From access counters and log report graphs to scientific plots and on-the-fly animated GIFs, graphics scripting is within the grasp of most web programmers. Using open source software, like Perl, you have the power to dynamically generate graphics based on user input and activity, easily manipulate graphics content, and optimize graphics for compression and quality. Geared toward Perl users and webmasters, Perl Graphics Programming focuses on open-source scripting programs that manipulate graphics files for use on the Web. The book demystifies the manipulation of graphics formats for newcomers to the Web with a practical, resource-like approach. With this book you'll learn to:
  • Generate dynamic web graphics with charts, tables, and buttons
  • Automate graphics tasks (thumbnails and borders)
  • Create dynamics web documents (PDF, Postscript)
  • Produce rich Internet experiences with Flash and SVG
You'll begin with a tour of the most common web graphic file formats—PNG, JPEG, GIF, SWF, SVG, Postscript and PDF—then you'll explore the most powerful tools and Perl modules available for manipulating these graphics, such as GD, PerlMagick, and GIMP. Included in this part of the book is a thorough description of the Ming module for creating on-the-fly Flash files. Next, a "cookbook" section includes practical, all purpose recipes: GIF animation, generating images within a dynamic application, communicating between SWF front-end and Perl back-end, XSLT transformations, compression, and much more. Perl programmers naturally turn to Perl to tackle whatever challenge they have at hand, and graphics programming is no exception. Perl Graphics Programming provides all the tools you need to begin programming and designing graphics for the Web immediately. This book will change how you think about generating and manipulating graphics for the Web.

Product Details

ISBN-13: 9780596002190
Publisher: O'Reilly Media, Incorporated
Publication date: 12/01/2002
Pages: 478
Product dimensions: 7.00(w) x 9.19(h) x 1.20(d)

About the Author

has been applying computers to graphics problems for the past fifteen years. A programmer and artist, Shawn is managing director of the AS220 (www.as220.org) artist community in Providence, RI, a cofounder of the SMT Computing Society, and a member of the Rhode Island chapter of the Perl Mongers. He is also involved in the Bolero open source music notation system (www.as220.org/shawn/bolero) and the Institute for Folk Computing, a program to inform and inspire the use of open software by the general public in Providence. Shawn studied computer engineering at the Universityof Rhode Island and participated in the construction of an early (mid-80s) hypermedia delivery system at HyperView Systems in Middletown, RI.

Table of Contents

Preface; Creating Raster Images and Web Graphics; Creating Vector Images and Animations; Creating Documents and Printing; Using Code Examples; Conventions Used in This Book; How to Contact Us; Acknowledgments; Raster Images and Web Graphics; Chapter 1: Creating Graphics with Perl; 1.1 Introduction to File Formats; 1.2 Color; 1.3 Raster File Formats; 1.4 Vector Graphic File Formats; 1.5 Document File Formats; 1.6 References; Chapter 2: On-the-Fly Graphics with GD; 2.1 GD Basics; 2.2 Sample GD Applications; 2.3 Reading and Writing Methods; 2.4 Getting and Setting General Information; 2.5 Color Table Manipulation Methods; 2.6 Brushes, Styles, and Tiles; 2.7 Copying and Transforming Images; 2.8 Image Drawing and Manipulation Methods; 2.9 Strings and Fonts; 2.10 Polygon Methods; Chapter 3: Graphics Scripting with Image::Magick; 3.1 What Is ImageMagick?; 3.2 Using Image::Magick; 3.3 Sample Image::Magick Applications; 3.4 Reading and Writing Images; 3.5 Retrieving and Setting File Information; 3.6 Sizing and Transforming Images; 3.7 Copying and Composing Images; 3.8 Color and Transparency; 3.9 Annotation and Drawing; 3.10 Filters and Effects; Chapter 4: Charts and Graphs with GD::Graph; 4.1 Let’s Make Some Graphs!; 4.2 A Sample GD::Graph Application; 4.3 GD::Graph Methods; 4.4 Attributes of GD::Graph Objects; 4.5 Colors and Fonts in GD::Graph; Chapter 5: Scripting the Gimp with Perl; 5.1 Getting and Installing the Gimp; 5.2 Writing Gimp Plug-ins in Perl; 5.3 Your First Gimp Script; 5.4 Object-Oriented Versus Procedural Scripting; 5.5 Adding New Features to the Gimp; 5.6 Standalone Scripts; Vector Images and Animations; Chapter 6: SVG: The Scalable Vector Graphics Format; 6.1 SVG Document Structure; 6.2 The Basic SVG Tags; Chapter 7: Creating SVG with Perl; 7.1 A Slide-Show Presentation; 7.2 SVG Animation; 7.3 Creating a Bouncing Ball; 7.4 SVG Scripting with JavaScript; 7.5 Using Unicode Text in SVG Images; 7.6 Transformation with XSLT and Perl; Chapter 8: SWF: The Flash File Format; 8.1 The History of Flash and SWF; 8.2 The Format and Function of SWF Files; 8.3 Anatomy of a Tag; 8.4 Parsing an SWF File with Perl; Chapter 9: Using Ming; 9.1 Installation; 9.2 Overview of the Perl Interface; 9.3 The Astral Trespassers Game; 9.4 The SWF Module; 9.5 The SWF::Movie Module; 9.6 The SWF::Sprite (or SWF::MovieClip) Module; 9.7 The SWF::DisplayItem Module; 9.8 The SWF::Shape Module; 9.9 The SWF::Button Module; 9.10 The SWF::Bitmap Module; 9.11 The SWF::Text Module; 9.12 The SWF::TextField Module; 9.13 The SWF::Font Module; 9.14 The SWF::Fill Module; 9.15 The SWF::Gradient Module; 9.16 The SWF::Morph Module; 9.17 The SWF::Sound Module; 9.18 The SWF::Action Module; 9.19 SWF Recipes; Documents and Printing; Chapter 10: Printing with Postscript and PDF; 10.1 PostScript in a Nutshell; 10.2 Portable Document Format (PDF); 10.3 References; Chapter 11: Using the PostScript Modules; 11.1 Creating PostScript from a Web Interface; 11.2 The PostScript::TextBlock Module; 11.3 The PostScript::Document Module; 11.4 The PostScript::Elements Module; 11.5 Other PostScript Modules; Chapter 12: Creating PDF Documents with Perl; 12.1 Introduction to PDF::API2; 12.2 Creating Address Labels; 12.3 Adding to Existing PDF Files; 12.4 PDF::API2 Reference; 12.5 PDF::API2::Page; 12.6 PDF::API2::Content; 12.7 PDF::API2::Gfx; 12.8 PDF::API2::Text; 12.9 PDF::API2::Outline; 12.10 References; Appendixes; Serving Graphics on the Web; The Server and CGI; Web Graphics and the Browser; Presenting Images in HTML; References; Gimp Reference; The Gimp::Fu register() Method; The Gimp Interface; Image::Magick File Formats; ActionScript Reference; Operators and Control Structures; Actions, Functions, and Properties; Objects; Colophon;
From the B&N Reads Blog

Customer Reviews