Imager...amples(3pm)
π NAME π
okay so bestie, this is the 3pm manual page for Imager::LargeSamples from User Contributed Perl Documentation, and it's lowkey a tracking doc for track/document large sample support, periodt. π
β¨ SYNOPSIS β¨
the whole vibe is: make a large sample image, call a method, then check if the image got modified at its full sample size. it's giving main character energy, ngl:
# make a large sample image
my $im = Imager->new(..., bits => 16);
# call some method
my $result = $im->$method(...);
# was the image modified at its full sample size
iykyk π
πΈ DESCRIPTION πΈ
Imager has had in-memory support for large samples for years now, but many methods still don't work at the higher sample size when supplied with a large sample image. π
This document will track which methods support large samples and which don't, for future improvements. no cap, it's literally a support tracker and we're obsessed with the detail. π«Ά
π«Ά Support by method π«Ά
vibe check time, bestie β here's every single method and whether large samples get the love:
arcβ support:Partialβ note [1].boxβ support:Partialβ note [2].circleβ support:Partialβ note [1].convertβ support:Full.copyβ support:Full.cropβ support:Full.differenceβ support:Full.filterβ support:Partialβ note:Depends on the filter.flipβ support:Full.flood_fillβ support:Partialβ note [1].getpixelβ support:Full.getsamplesβ support:Full.getscanlineβ support:Full.mapβ support:None.maskedβ support:Full.matrix_transformβ support:Full.pasteβ support:Full.polygonβ support:Partialβ note [1].polylineβ support:None.readβ support:Partialβ seeL<File format large sample support>.read_multiβ support:Partialβ seeL<File format large sample support>.rotateβ support:Full.rubthroughβ support:Full.scaleβ support:Partialβ note:Some qtypes support large samples.scaleXβ support:None.scaleYβ support:None.setpixelβ support:Full.setscanlineβ support:Full.stringβ support:Fullβ note:Preserves large samples, but most font drivers generate 8 or fewer bits of levels of coverage.transformβ support:None.transform2β support:None.writeβ support:Partialβ seeL<File format large sample support>.write_multiβ support:Partialβ seeL<File format large sample support>.
and the footnotes, because details matter, bestie:
- [1] filling an area using the
fillparameter works at the full depth of the image, usingfilled => 1andcolorworks at8-bits/sample. - [2]
box()will fill the area at the supplied color, but outline at8-bits/sample.
π¦ File format large sample support π¦
format support is its own little saga, so here's the tea by file format:
BMPβ format samples:8; Imager support:8.GIFβ format samples:8; Imager support:8.ICOβ format samples:8; Imager support:8.JPEGβ format samples:8, 12; Imager support:8.PBMβ format samples:1; Imager support:1.PGM/PPMβ format samples:1-16; Imager support:read any, writes 8, 16.PNGβ format samples:1, 2, 4, 8, 16; Imager support:1, 2, 4, 8 paletted,1, 8, 16 gray (1 for is_monochrome() images),8, 16 RGB.RAWβ format samples: (empty in the original); Imager support:8.SGIβ format samples:8, 16; Imager support:8, 16.TGAβ format samples:8; Imager support:8.TIFFβ format samples:(many); Imager support:read/write 8, 16, 32 contig rgb/grey images,read/write bi-level,read/write 4/8 paletted images.
these formats really said "we contain multitudes," and honestly? iconic. π
π Filter larger sample support π
and the filter lineup, because filters deserve their own moment:
autolevelsβ large sample support:No.bumpmapβ large sample support:No.bumpmap_complexβ large sample support:No.contrastβ large sample support:No.convβ large sample support:Yes.fountainβ large sample support:Yes.gaussianβ large sample support:Yes.gradgenβ large sample support:No.hardinvertβ large sample support:Yes.mosaicβ large sample support:No.postlevelsβ large sample support:No.radnoiseβ large sample support:No.turbnoiseβ large sample support:No.unsharpmaskβ large sample support:Yes.watermarkβ large sample support:No.
the yes-girlies ate, the no-girlies are still on their journey. ππ
π AUTHOR π
Tony Cook <tonyc@cpan.org> β icon behavior, honestly. π«Ά
mwah π this cutie is from perl v5.42.3, dated 2026-08-19, and it's the Imager::LargeSamples(3pm) page β love u, bye! π«Άβ¨
π¦ where this page comes from
- ubuntu stonking: libimager-perl 1.035+dfsg-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms