PDF::Bu...age::GD(3)

πŸ’– PDF::Builder::Resource::XObject::Image::GD πŸ’–

okay bestie, welcome to the GD image glow-up page β€” this is part of the User Contributed Perl Documentation collection, and it's basically the support-routines era of the Graphics Development image library. slay. πŸŽ€


🌸 NAME 🌸

PDF::Builder::Resource::XObject::Image::GD β€” support routines for the Graphics Development image library. it's giving helper energy, and we love that for it. ✨

Also, real quick, the way that it inherits from PDF::Builder::Resource::XObject::Image? iconic lineage, no notes. πŸ‘‘


πŸ¦‹ METHODS πŸ¦‹

✨ new ✨

$res = PDF::Builder::Resource::XObject::Image::GD->new($pdf, $file, %opts)

not me showing you the constructor first because of course we're starting there πŸ’…. Here's what you can pass in:

  • 'name' => 'string' β€” this is the lil name you get to give your GD image object, like naming a pet but make it pixels. 🐾 if you don't pick one, the default is Dxnnnn. yeah, literally just that.
  • 'lossless' => 1 β€” turn this on and you get lossless compression. no quality lost, all vibes preserved. 🫢

So like, an image object gets created from GD input. 🌈

⚠️ heads up bestie: this should be invoked from Builder.pm's method. don't come for me, that's just the rule. πŸ™ˆ

and that's the whole page, you ate that πŸ’…βœ¨

this lil doc is living its best life as perl v5.42.0, dated 2026-01-17 β€” yes, it's giving very current, we love a fresh page. bye bestie, go make some images πŸ¦‹πŸ’–πŸŽ€

πŸ“¦ where this page comes from