You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Damjan Jovanovic (Resolved) (JIRA)" <ji...@apache.org> on 2012/01/26 16:14:39 UTC

[jira] [Resolved] (SANSELAN-62) Bit depth wrongly calculated in GIFFimageparser

     [ https://issues.apache.org/jira/browse/SANSELAN-62?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Damjan Jovanovic resolved SANSELAN-62.
--------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.0

Applied patch in commit 1236225, resolving fixed.
                
> Bit depth wrongly calculated in GIFFimageparser
> -----------------------------------------------
>
>                 Key: SANSELAN-62
>                 URL: https://issues.apache.org/jira/browse/SANSELAN-62
>             Project: Commons Sanselan
>          Issue Type: Bug
>          Components: Format: GIF
>            Reporter: Piyush Kapoor
>            Priority: Minor
>             Fix For: 1.0
>
>   Original Estimate: 1m
>  Remaining Estimate: 1m
>
> File : GifImahgeParser.java 
> Formula used for calculating Bits per pixel is wrong . 
> It should be
> int BitsPerPixel = (bhi.colorResolution + 1) ;
> instead of 
> int BitsPerPixel = (bhi.colorResolution + 1) * 3;

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira