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

4.3 11
by Shawn Wallace
     
 

View All Available Formats & Editions

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

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:
480
Product dimensions:
7.04(w) x 9.34(h) x 1.20(d)

Meet 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 University of Rhode Island and participated in the construction of an early (mid-80s) hypermedia delivery system at HyperView Systems in Middletown, RI.

Customer Reviews

Average Review:

Write a Review

and post it to your social network

     

Most Helpful Customer Reviews

See all customer reviews >

Perl Graphics Programming: Creating SVG, SWF (Flash), JPEG and PNG Files with Perl 4.6 out of 5 based on 0 ratings. 8 reviews.
Guest More than 1 year ago
Wallace explains how Perl has evolved to have an impressive image reading and writing ability, for the most common graphics formats of GIF, JPEG, PNG and X bitmap. A lot of the heavy lifting has been done for you in two modules - GD and ImageMagick. The chapters on those expose you to simple subroutines that you'd expect in any graphics package. But Wallace extends the scope to the usage of Postscript and PDF modules. Some Perl developers recognised the need to output in these formats, for compatibility with much professional documentation. So here too, you can take advantage of a lot of prior sweat. For completeness, the book also has a section on supported vector graphics and animation. Specifically how to use SVG and Flash in Perl. This is perhaps a more specialised need than the previous modules. But good to have here, for some of you. It should be noted that the book is not really about teaching graphics programming, per se. Wallace assumes you're already up on this. Rather, the book is about the modules and subroutines that give you the elementary graphics implementation vocabulary.
Anonymous More than 1 year ago
Bootiful poems.
Anonymous More than 1 year ago
This. Is. Addicting.
Anonymous More than 1 year ago
Lin, your poem was so touching...It made me a little teary-eyed...
Anonymous More than 1 year ago
I accept your challenge! XD <p> Hallo. <br> I am Russia. <br> I have many eyeballs. <br> One, two, three, <br> Four, five, six. <br> So many eyeballs. <br> Very squishy. <br> I like to put down people's shirt. <br> Their screams taste of sweat and koalas. <br> I laugh big laugh. <br> And then I hug them. <br> And then they scream bigger. <br> So I put another eyeball in their pocket, <br> And tell them to become one with me. <br> I laugh even bigger as they run. <br> And then I make it rain eyeballs. <br> Very squishy. <br> I have many eyeballs.
Anonymous More than 1 year ago
Must say I ship USUK more, but AmeriPan is still awesome sauce. ^-^ I love it!
Anonymous More than 1 year ago
Keep going!
Anonymous More than 1 year ago
Kiku could feel the stares of everyone in the cabin. He honestly didn't know what to say, but he had to do this. <br>For... <br>He turned to Alfred, who was intently gazing at him, waiting patiently for him to say something. Kiku couldn't let him down. He had to do this for Alfred. <br>For... for Alfred. Kiku cleared his throat nervously. <br>"We... could... we could... somehow damage the counselors' cabin. I don't know the details of this yet, but... maybe you could help?" Kiku shoved his hands into the pockets of his jacket. He felt like a fool, saying he knew what to do when in fact, he didn't. He blushed nervously as he locked eyes with Alfred, expecting annoyance and embarrassment. But Kiku didn't expect what was about to happen next. <br>"Dude, that's a great idea! We could all help each other, we could all be the hero!" Alfred's eyes shone with a happiness and brilliance that made Kiku blush even harder. <br>"T-thanks. Does anyone here have an idea?" Kiku felt like he was about to faint. <br>"I found a hidden stash of quilted toilet paper in the counselors' cabin, so..." Matthew quickly added. Everyone in the cabin muttered their astonishment and approval. <br>"I brought rubber eyeballs!" Ivan chimed in, making everyone stare at him in utter confusion. <br>"I found a nest of crickets near a pond, aru," Yao said, trying to prevent any added staring at Ivan. <br>"If we fail, I know of a cave we can hide in. Also, Matthew, try to spread the word," Kiku said, still blushing at Alfred. <br>"Meeting dismissed, I'm tired as fu<_>ck!" Alfred yawned as he climbed up to his bunk. "But where will Matthew sleep?" <br>Kiku motioned at his own bunk. "He can sleep in my bed. I'll- I'll sleep in your bed... I don't mind sharing." He climbed up the ladder and lay down next to Alfred, his heart beating a drum solo. Should Kiku tell him how he felt? He still didn't know how Alfred would react, but it was now or never. Kiku sighed. He would have to do this now. <p>To Be Continued <br>Author's note: I dare you to write a poem about Ivan's collection of rubber eyeballs. :3 <br>~E &spades