]> git.imager.perl.org - imager.git/commit
- previously, if you supplied to_paletted and empty color map
authorTony Cook <tony@develop=help.com>
Sun, 5 Sep 2004 05:28:46 +0000 (05:28 +0000)
committerTony Cook <tony@develop=help.com>
Sun, 5 Sep 2004 05:28:46 +0000 (05:28 +0000)
commit1501d9b365a896effdcbf8825404d886b88d208c
tree82f1da4a80966e62c570a9334bd118e64f8dcc34
parent8b69555413e5954690fee06e2e498e5b8f9ecdbd
    - previously, if you supplied to_paletted and empty color map
          and set make_colors to 'none', quant_translate() would segfault.
          This was because it was making the reasonable assumption that
          you'd have colors to map to.  quant_translate() now checks there
          is at least one color and return NULL if there isn't.
        - i_img_to_pal() now does error checking of the value returned by
          quant_translate().
        - Imager::to_paletted() now checks for success/failure of
          i_img_to_pal() correctly and does appropriate error handling.
        - i_writegif_low() did no error checking on the result of
          quant_translate(), it now does
        - we now test that trying to write a GIF image with no palette
          allowable by the quant options is a failure.
        - Imager::write() was doing nothing with the result of the call
          to i_writegif_gen(), in particular it wasn't returning () on
          failure.
        - added tests for paletted image handling and the methods
          specific to those images
        - the XS for i_setcolors() was missing the OUTPUT clause for
          RETVAL, and hence wasn't returning failure on failure.
        - supplying a sufficiently small scaling value could make the
          scale() method return an image with zero height or width.
        - the void context warning for scale() now includes the callers
          filename/line (instead of the default of Imager.pm line 15xx)
        - Imager->new will now return undef if the dimensions or number of
          channels specified for an image are out of range.  An error
          message can be retrieved with Imager->errstr.
18 files changed:
Changes
Imager.pm
Imager.xs
MANIFEST
gif.c
image.c
img16.c
imgdouble.c
lib/Imager/ImageTypes.pod
palimg.c
quant.c
t/t01introvert.t
t/t021sixteen.t
t/t022double.t
t/t023palette.t [new file with mode: 0644]
t/t105gif.t
t/t40scale.t
t/testtools.pl