did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

We're the #1 textbook rental company. Let us show you why.

9781565924789

Programming Web Graphics With Perl and Gnu Software

by
  • ISBN13:

    9781565924789

  • ISBN10:

    1565924789

  • Format: Paperback
  • Copyright: 1999-02-01
  • Publisher: Oreilly & Associates Inc
  • Purchase Benefits
  • Free Shipping Icon Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • eCampus.com Logo Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $32.95

Summary

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 Softwareis 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 Softwaretakes 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-flyOne 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.

Author Biography

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 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 ix
I. Introduction to Web Graphics 1(76)
1. Image File Formats
3(31)
Network Graphics Basics
3(14)
Graphics Interchange Format (GIF)
17(7)
Portable Network Graphics (PNG)
24(4)
JPEG
28(4)
References
32(2)
2. Serving Graphics on the Web
34(32)
The Server and CGI
35(7)
Web Graphics and the Browser
42(2)
Presenting Images in HTML
44(18)
Colors and the Web Browser
62(2)
The Once and Future Browser
64(1)
References
65(1)
3. A Litany of Libraries
66(11)
Image Support Libraries
66(9)
References
75(2)
II. Graphics Programming Tools 77(158)
4. On-the-Fly Graphics with GD
79(35)
GD Jumpstart
79(3)
Sample Application: A Chess Board Simulator
82(10)
The GD.pm Distribution
92(14)
Font Methods
106(1)
Polygon Methods
107(7)
5. Industrial-Strength Graphics Scripting with PerlMagick
114(54)
Learn PerlMagick in 21 Seconds
115(1)
The ImageMagick Distribution and PerlMagick
116(7)
Image::Magick Attributes and Methods by Category
123(2)
Reading and Writing Images
125(2)
Getting and Setting Image::Magick Attributes
127(12)
Manipulating Images
139(25)
How to Tell When Something Has Gone Wrong
164(1)
Using the ImageMagick Utilities
165(3)
6. Charts and Graphs with GIFgraph
168(30)
Let's Make Some Graphs!
168(9)
GIFgraph Reference
177(11)
Colors in GIFgraph
188(3)
Creating Data Sets with Data::Xtab
191(3)
Passing GIFgraph Graphs to GD Objects
194(4)
7. Web Graphics with the Gimp
198(37)
Quick Gimp
199(7)
Getting and Installing the Gimp
206(2)
Using the Gimp for Day-to-Day Web Projects
208(10)
Scripting the Gimp in Perl
218(15)
References
233(2)
III. Dynamic Graphic Techniques 235(122)
8. Image Maps
237(21)
Client-Side Versus Server-Side
238(8)
Image Map Tools
246(5)
Image Maps on the Fly: A Clickable "Wander" Engine
251(7)
9. Moving Pictures: Programming GIF Animation
258(30)
Anatomy of a GIF89a Animation
259(5)
Seven Easy Pieces with PerlMagick
264(14)
GIFscript, an Animation Scripting Language
278(10)
10. Web Graphics Cookbook
288(26)
The BrokenImage Module
288(3)
A Web Page Access Counter
291(5)
A JavaScript Rollover Menu
296(4)
A Web Cam
300(3)
ASCII ALTs
303(5)
Thumbnailing
308(5)
References
313(1)
11. Paperless Office? Not in Our Lives: Printing and the Web
314(43)
Everything I Needed to Know About PostScript I Learned Here
315(10)
Using the PostScript Modules on the Web
325(6)
The PostScript::TextBlock Module
331(9)
Multipage Documents with PostScript::Document
340(8)
The PostScript::Elements Module
348(7)
References
355(2)
IV. Appendixes 357(86)
A. A Simple PNG Decoder in Perl
359(6)
B. Quick Reference Guide to the Gimp
365(28)
C. Procedure Reference for the Gimp
393(50)
Index 443

Supplemental Materials

What is included with this book?

The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.

The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.

Rewards Program