From 9b237cbd115ab17cdff71737b91f4fd22727f2d6 Mon Sep 17 00:00:00 2001 From: Tony Cook Date: Tue, 21 Dec 2004 23:42:30 +0000 Subject: [PATCH] initial work, just basic file reading/writing so far --- lib/Imager/Cookbook.pod | 63 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 lib/Imager/Cookbook.pod diff --git a/lib/Imager/Cookbook.pod b/lib/Imager/Cookbook.pod new file mode 100644 index 00000000..4ac4e19d --- /dev/null +++ b/lib/Imager/Cookbook.pod @@ -0,0 +1,63 @@ +=head1 NAME + +Imager::Cookbook - recipes working with Imager + +=head1 DESCRIPTION + +Various simple and not so simple ways to do things with Imager. + +=head1 FILES + +This is described in detail in L. + +=head2 Reading an image from a file + + my $image = Imager->new; + + $image->read(file=>$filename) or die $image->errstr; + +See L. + +=head2 Writing an image to a file + + $image->write(file=>$filename) or die $image->errstr; + +=head2 Write an animated gif. + + # build an array of images to use in the gif + my @images; + # synthesize the images or read them from files, it doesn't matter + ... + + # write the gif + Imager->write_multi({ file=>$filename, type=>'gif' }, @images) + or die Imager->errstr; + +See L for a more detailed +example. + +=head2 Reading multiple images from one file + +Some formats, like GIF and TIFF support multiple images per file. Use +the L method to read them: + + my @images = Imager->read_multi(file=>$filename) + or die Imager->errstr; + +=head1 IMAGE SYNTHESIS + +=head1 WORLD WIDE WEB + +=head1 TEXT + +=head1 METADATA + +=head1 AUTHOR + +Tony Cook + +=head1 SEE ALSO + +L, L, L. + +=cut -- 2.39.5