Menu

#17 -plte_len switch may not truncate palette

None
closed
None
5
2016-02-05
2003-11-14
Anonymous
No

-plte_len switch does not truncate palette if the input
file is a palette image with <=16 unique colours, has
bit depth of 4, and has 256 colours in the PLTE chunk
(see attachment).

Discussion

  • Glenn Randers-Pehrson

    Logged In: YES
    user_id=7859

    There is no attached example. However, if the bit depth is
    4, then the input file should not contain more than 16 entries
    in its PLTE chunk. Pngcrush should be detecting this error
    regardless of whether the -plte_len option is present.

     
  • Glenn Randers-Pehrson

    Fixed in pngcrush-1.7.79

     
  • Glenn Randers-Pehrson

    The plte_len switch is gone as of pngcrush-1.8.0

     
  • Glenn Randers-Pehrson

    • status: open --> closed
    • Group: -->
     

Log in to post a comment.