Chapter 1. Creating Graphics with Perl

Almost every modern application goes beyond plain text. Graphics appear in the form of logos, icons, charts, animations, or even as a “Save as PDF” option. These graphics can be images (static pictures), animations (moving pictures, possibly interactive), and documents (formatted pages of text and images).

You have several choices of representation for each type of graphic. For example, images are often kept as JPEG or GIF files. But the JPEG format and the GIF format are quite different, and impose different restrictions on the types of images you can store. This chapter explains the different file formats; their characteristics, advantages, and disadvantages; and what each is capable of. This information will help you to select an appropriate format for your graphics.

Get Perl Graphics Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.