demonstrate displaying a generated image on a HTML page.
- Makefile.PL now adds rules to generate a suitable META.yml to the
generated Makefile.
+- added sample code for handling images uploaded via a HTML form.
=================================================================
samples/interleave.pl
samples/samp-form.cgi
samples/samp-image.cgi
+samples/samp-scale.cgi Demonstrate image upload via a HTML form
+samples/samp-scale.html Form for samp-scale.cgi
+samples/samp-tags.cgi Demonstrate image upload via a HTML form
+samples/samp-tags.html Form for samp-tags.cgi
spot.perl For making an ordered dither matrix from a spot function
stackmach.c
stackmach.h
- audit pnm.c (done)
- audit tga.c (done)
- audit rgb.c and add tests
-- add META.yml (bypass EU::MM's limited mechanism)
+- add META.yml (bypass EU::MM's limited mechanism) (done)
- implement i_incomplete for bmp files
- check if freetype 2 is faster/slower than freetype 1 with Imager's glyph
caching. If FT1 is faster, add caching as a TODO for FT2.
-- add sample CGI that handles an uploaded image
+- add sample CGI that handles an uploaded image (done)
- examples for fountain filter in Imager::Filters
- allow Imager::Fountain to take color descriptions (eg. blue, FF000)
instead of color objects for c0 and c1.
binmode STDOUT;
print $data;
+See C<samples/samp-scale.cgi> and C<samples/samp-image.cgi> for a
+couple of simple examples of producing an image from CGI.
+
=head2 Inserting a CGI image in a page
There's occasionally confusion on how to display an image generated by
}
# else, the user didn't select a file
+See C<samples/samp-scale.cgi> and C<samples/samp-tags.cgi> in the
+Imager distribution for example code.
+
=head1 DRAWING
=head1 TEXT
The POD for this sample discusses alternate approaches and security
considerations.
+
+samp-scale.html
+samp-scale.cgi
+
+ Example that demonstrates reading an image uploaded via a HTML form.
+
+ Produces an output image scaled to fit inside 200x200.
+
+samp-tags.html
+samp-tags.cgi
+
+ Example that demonstrates reading an image uploaded via a HTML form.
+
+ Produces a text/plain report of the tags that Imager defined for the
+ image.
+
+ This and the previous sample are very similar, the intent is to show
+ the common elements and to demonstrate that the output is independent
+ of the input.
+
+ See the section "Parsing an image posted via CGI" in Imager::Cookbook
+ for cautions and details on reading uploaded images.