From: Tony Cook Date: Tue, 10 May 2016 00:44:44 +0000 (+1000) Subject: make the jpegquality docs clearer X-Git-Tag: v1.006~7 X-Git-Url: http://git.imager.perl.org/imager.git/commitdiff_plain/9619c400aab403242cc2d7ae13dd714a4bb7ccd6 make the jpegquality docs clearer --- diff --git a/lib/Imager/Files.pod b/lib/Imager/Files.pod index 7b9a0c8a..0c3c16d2 100644 --- a/lib/Imager/Files.pod +++ b/lib/Imager/Files.pod @@ -598,15 +598,16 @@ image when this tag is non-zero. =head2 JPEG -=for stopwords composited - -You can supply a C parameter (0-100) when writing a JPEG -file, which defaults to 75%. If you write an image with an alpha -channel to a JPEG file then it will be composited against the -background set by the C parameter (or tag). +You can supply a C parameter ranging from 0 (worst +quality) to 100 (best quality) when writing a JPEG file, which +defaults to 75. $img->write(file=>'foo.jpg', jpegquality=>90) or die $img->errstr; +If you write an image with an alpha channel to a JPEG file then it +will be composed against the background set by the C +parameter (or tag), or black if not supplied. + Imager will read a gray scale JPEG as a 1 channel image and a color JPEG as a 3 channel image.