]> git.imager.perl.org - imager.git/commitdiff
quote the use of min in type=>min, and at least give it some basic
authorTony Cook <tony@develop=help.com>
Mon, 15 Apr 2002 23:26:11 +0000 (23:26 +0000)
committerTony Cook <tony@develop=help.com>
Mon, 15 Apr 2002 23:26:11 +0000 (23:26 +0000)
documentation (scale() in Imager::Transformations)

Changes
Imager.pm
TODO
lib/Imager/Transformations.pod

diff --git a/Changes b/Changes
index 5ca171fa2bd416309f89c546bf3056407d8ea4e9..3729e911999d0c8ccfb5aef65462c503c88dcb24 100644 (file)
--- a/Changes
+++ b/Changes
@@ -640,10 +640,14 @@ Revision history for Perl extension Imager.
           it used fork() which caused problems on systems that didn't have
           a real fork().
 
-0.41?
+0.41
         - skip() in testtools should be skipn() and it should use the 
           loop variable for the test number
 
+0.42pre1
+        - quote the 'min' parameter to scale in Imager::Transformations
+          and at least mention it in the docs beyond the examples
+
 =================================================================
 
         For latest versions check the Imager-devel pages:
index 234033c610cd7331c31cd93b81553ea35f1ed1f8..bd0deca96f625432925f2708ff21aa65ee89275f 100644 (file)
--- a/Imager.pm
+++ b/Imager.pm
@@ -2703,7 +2703,7 @@ This document - Synopsis Example, Table of Contents and Overview.
 
 Direct type/virtual images, RGB(A)/paletted images, 8/16/double
 bits/channel, color maps, channel masks, image tags, color
-quantization.
+quantization.  Also discusses basic image information methods.
 
 =item Imager::Files
 
diff --git a/TODO b/TODO
index 3373a076acadaade441f85c78939a0cd1744cbad..31e1fc775bbe94647a0fc54c3f2971edfacd592c 100644 (file)
--- a/TODO
+++ b/TODO
@@ -153,3 +153,5 @@ Documentation:
 - Go through the entire project and add comments in pod
   so doco.perl can be used to read them.
 - see the IRC log in design/doclayout.txt
+- method index?
+- concept index?
index 62cacc5a9542e6b0915eb17bc9efc6f60f425174..f790fa79a85028d25de5a19292621abcf2fe97ca 100644 (file)
@@ -10,7 +10,7 @@ Imager::Transformations - Simple transformations of one image into another.
 
   $newimg = $img->scale(xpixels=>400);
   $newimg = $img->scale(xpixels=>400, ypixels=>400);
-  $newimg = $img->scale(xpixels=>400, ypixels=>400, type=>min);
+  $newimg = $img->scale(xpixels=>400, ypixels=>400, type=>'min');
   $newimg = $img->scale(scalefactor=>0.25);
 
   $newimg = $img->crop(left=>50, right=>100, top=>10, bottom=>100); 
@@ -76,14 +76,15 @@ if you want to keep an original after doing something that changes the image.
 To scale an image so porportions are maintained use the
 C<$img-E<gt>scale()> method.  if you give either a xpixels or ypixels
 parameter they will determine the width or height respectively.  If
-both are given the one resulting in a larger image is used.  example:
-C<$img> is 700 pixels wide and 500 pixels tall.
+both are given the one resulting in a larger image is used, unless you
+set the C<type> parameter to C<'min'>.  example: C<$img> is 700 pixels
+wide and 500 pixels tall.
 
   $newimg = $img->scale(xpixels=>400); # 400x285
   $newimg = $img->scale(ypixels=>400); # 560x400
 
   $newimg = $img->scale(xpixels=>400,ypixels=>400); # 560x400
-  $newimg = $img->scale(xpixels=>400,ypixels=>400,type=>min); # 400x285
+  $newimg = $img->scale(xpixels=>400,ypixels=>400,type=>'min'); # 400x285
 
   $newimg = $img->scale(scalefactor=>0.25); 175x125 
   $newimg = $img->scale(); # 350x250