Tournament of Books 2015

Special Offers see all

Enter to WIN a $100 Credit

Subscribe to
for a chance to win.
Privacy Policy

Visit our stores

    Recently Viewed clear list

    The Powell's Playlist | January 5, 2015

    Tim Johnston: IMG The Powell's Playlist: Songs for Not Sleeping by Tim Johnston

    I once told a medical-profession-type lady that I didn't sleep well, that I awoke all through the night and was awake for hours. "What do you do... Continue »


This item may be
out of stock.

Click on the button below to search for this title in other formats.

Check for Availability
Add to Wishlist

Programming Web Graphics with Perl and GNU Software

Programming Web Graphics with Perl and GNU Software Cover


Synopses & Reviews

Publisher Comments:

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 authors. It is a little documented field, however, and the many valuable free libraries and tools available on the Internet remain under-utilized. Programming Web Graphics with Perl & GNU Software is aimed at intermediate and advanced Web users who want to use CGI scripts to generate dynamic graphic content. It will also help to demystify the manipulation of graphics formats for newcomers to the Web.Programming Web Graphics with Perl & GNU Software takes a practical, resource-like approach to the content. It is not a book about design or aesthetics of Web graphics; its focus is on programming or, more accurately, scripting programs that manipulate graphics file to be published on the Web. Most of the examples in the book use Perl as a scripting language, though the concepts are applicable to any programming language. However, several powerful Perl modules for generating graphics (GD, PerlMagick, GIFgraph) should help position Perl as a major contender for your Web graphics applications. Most of the topics covered in the book are applicable to any platform (NT, Linux, Un*x, MaxOS), with the exception of the chapter detailing the Gnu Image Manipulation Program (a free Adobe Photoshop-like application), which requires a connection to an X server. The focus is always on free software, when it is available.This book covers the following:

  • a tour through the most popular Web graphics file formats by implementing parsers for GIF, JPEG, and PNG files
  • descriptions of the PNG, JPEG, and giflib libraries, as well as many other free and proprietary libraries and SDKs
  • extensive documentation and examples using the Perl graphics modules GD and GIFgraph, and the Perl interface to the powerful ImageMagick libraries
  • documentation on the Gnu Image Manipulation Program (GIMP) and the Perl interface that lets you easily script plug-ins or interface to the GIMP via the Web
  • the creation of image maps from data extracted from a database
  • the implementation of several new Perl modules for the creation of neatly formatted PostScript files
  • details on interfacing to a fax gateway
  • reusable recipes for many popular applications such as Web counters and Web cams
  • the creation of animated GIFs on-the-fly
One of the key ingredients to the success of the Web is that anyone who wanted to could participate in publishing to the world. This book will take its readers to the next level of publishing to the world: learning to use scripting programs to create dynamic graphics for their Web sited. The information in this book is written in a practical, easy manner with high-quality documentation and useful examples throughout. It is a detailed reference that provides Web designers and programmers and with the information they need to program.


"Programming Web Graphics with Perl and GNU Software" shows intermediate and advanced Web designers how to use CGI scripts to generate dynamic graphic content and demystifies the manipulation of graphics formats for newcomers to the Web.

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 ( 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 ( 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 University of 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; Contents of This Book; Conventions Used in This Book; How to Contact Us; Acknowledgments; Introduction to Web Graphics; Chapter 1: Image File Formats; 1.1 Network Graphics Basics; 1.2 Graphics Interchange Format (GIF); 1.3 Portable Network Graphics (PNG); 1.4 JPEG; 1.5 References; Chapter 2: Serving Graphics on the Web; 2.1 The Server and CGI; 2.2 Web Graphics and the Browser; 2.3 Presenting Images in HTML; 2.4 Colors and the Web Browser; 2.5 The Once and Future Browser; 2.6 References; Chapter 3: A Litany of Libraries; 3.1 Image Support Libraries; 3.2 References; Graphics Programming Tools; Chapter 4: On-the-Fly Graphics with GD; 4.1 GD Jumpstart; 4.2 Sample Application: A Chess Board Simulator; 4.3 The Distribution; 4.4 Font Methods; 4.5 Polygon Methods; Chapter 5: Industrial-Strength Graphics Scripting with PerlMagick; 5.1 Learn PerlMagick in 21 Seconds; 5.2 The ImageMagick Distributionand PerlMagick; 5.3 Image::Magick Attributes and Methods by Category; 5.4 Reading and Writing Images; 5.5 Getting and Setting Image::Magick Attributes; 5.6 Manipulating Images; 5.7 How to Tell When Something Has Gone Wrong; 5.8 Using the ImageMagick Utilities; Chapter 6: Charts and Graphs with GIFgraph; 6.1 Let's Make Some Graphs!; 6.2 GIFgraph Reference; 6.3 Colors in GIFgraph; 6.4 Creating Data Sets with Data::Xtab; 6.5 Passing GIFgraph Graphs to GD Objects; Chapter 7: Web Graphics with the Gimp; 7.1 Quick Gimp; 7.2 Getting and Installing the Gimp; 7.3 Using the Gimp for Day-to-Day Web Projects; 7.4 Scripting the Gimp in Perl; 7.5 References; Dynamic Graphic Techniques; Chapter 8: Image Maps; 8.1 Client-Side Versus Server-Side; 8.2 Image Map Tools; 8.3 Image Maps on the Fly: A Clickable "Wander" Engine; Chapter 9: Moving Pictures: Programming GIF Animation; 9.1 Anatomy of a GIF89a Animation; 9.2 Seven Easy Pieces with PerlMagick; 9.3 GIFscript, an Animation Scripting Language; Chapter 10: Web Graphics Cookbook; 10.1 The BrokenImage Module; 10.2 A Web Page Access Counter; 10.3 A JavaScript Rollover Menu; 10.4 A Web Cam; 10.5 ASCII ALTs; 10.6 Thumbnailing; 10.7 References; Chapter 11: Paperless Office? Not in Our Lives: Printing and the Web; 11.1 Everything I Needed to Know About PostScript I Learned Here; 11.2 Using the PostScript Modules on the Web; 11.3 The PostScript::TextBlock Module; 11.4 Multipage Documents with PostScript::Document; 11.5 The PostScript::Elements Module; 11.6 References; Appendixes; A Simple PNG Decoder in Perl; Quick Reference Guide to the Gimp; The Gimp Toolbox; The Toolbox Menu Hierarchy; The Image Menu Hierarchy; Procedure Reference for the Gimp; Procedural Database Information; File Operations; Painting, Drawing, and Transforms; Color Control, Palettes, and Patterns; Selection Procedures; Layers and Channels; Undo and Redo; Image Information and Management; User Interface; Extensions; Colophon;

Product Details

Koman, Richard
Koman, Richard
Wallace, Shawn
O'Reilly Media
Computer Graphics - General
Computer graphics
Internet - Web Site Design
Web sites
World wide web (information retrieval system)
Programming Languages - CGI, Javascript, Perl, VBScript
Object-oriented programming
Unix (Operating system).
Books; Computers & Internet; Internet & World Wide Web; Scripting & Programming; Perl
Books; Computers & Internet; Networking & OS; Operating Systems; Unix; Programming
Computer Books: Operating Systems
Perl (Computer program languag
Internet - General Books; Computers & Internet; Programming; Graphics & Multimedia; General Books; Computers & Internet; Programming; Graphics & Multimedia; Interface Design
CGI scripts;GIMP,;GNU;Graphics;Perl;Programming;Software;Web;graphics scripting
General Computers
Edition Number:
1st ed.
Edition Description:
Print PDF
O'Reilly Nutshell
Series Volume:
Publication Date:
9.19 x 7 x 0.98 in 1.62 lb

Related Subjects

Computers and Internet » Computer Languages » Javascript
Computers and Internet » Computer Languages » Perl

Programming Web Graphics with Perl and GNU Software
0 stars - 0 reviews
$ In Stock
Product details 468 pages O'Reilly & Associates Inc. - English 9781565924789 Reviews:
"Synopsis" by ,
"Programming Web Graphics with Perl and GNU Software" shows intermediate and advanced Web designers how to use CGI scripts to generate dynamic graphic content and demystifies the manipulation of graphics formats for newcomers to the Web.
  • back to top


Powell's City of Books is an independent bookstore in Portland, Oregon, that fills a whole city block with more than a million new, used, and out of print books. Shop those shelves — plus literally millions more books, DVDs, and gifts — here at