Editing
Portal:Graphics Programming
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== GD and simple generated graphics === Another historically important Perl graphics library is '''GD'''. `GD.pm` is a Perl interface to Thomas Boutell’s gd graphics library. MetaCPAN describes GD as allowing Perl programs to create color drawings using graphics primitives and emit the drawings as PNG files.<ref>MetaCPAN, “GD,” https://metacpan.org/pod/GD, accessed July 3, 2026.</ref> GD was widely used for dynamic web graphics because it was relatively simple and well suited to generating images from code. A Perl program using GD could create a blank canvas, draw lines, rectangles, polygons, arcs, filled shapes, text, and simple charts, then output a PNG image to a browser or file. GD’s role in Perl graphics was different from ImageMagick’s. ImageMagick was powerful for manipulating existing images and converting between formats. GD was often used to create new raster images from scratch. GD was useful for: * counters; * small charts; * buttons; * badges; * diagrams; * maps; * labels; * simple graphs; * CAPTCHA-style images; * generated PNG output from CGI scripts. Many early dynamic web applications used GD because it was direct, scriptable, and practical.
Summary:
Please note that all contributions to Perl Guilds - Getting Medieval with Perl may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Perl Guilds - Getting Medieval with Perl:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Tools
What links here
Related changes
Page information