[
https://issues.apache.org/jira/browse/IMAGING-264?focusedWorklogId=472441&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-472441
]
ASF GitHub Bot logged work on IMAGING-264:
------------------------------------------
Author: ASF GitHub Bot
Created on: 19/Aug/20 13:48
Start Date: 19/Aug/20 13:48
Worklog Time Spent: 10m
Work Description: coveralls commented on pull request #94:
URL: https://github.com/apache/commons-imaging/pull/94#issuecomment-676387463
[](https://coveralls.io/builds/32859636)
Coverage increased (+0.01%) to 76.326% when pulling
**5898b20030d0b5e8d975004f095e8532d13cd1e2 on kinow:IMAGING-264** into
**51d204a9dc607d9840021396f5b68360a2ea2573 on apache:master**.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 472441)
Time Spent: 20m (was: 10m)
> BMP Parser physicalWidthDpi and physicalHeightDpi truncated before rounding
> off.
> --------------------------------------------------------------------------------
>
> Key: IMAGING-264
> URL: https://issues.apache.org/jira/browse/IMAGING-264
> Project: Commons Imaging
> Issue Type: Bug
> Components: Format: BMP
> Affects Versions: 1.0-alpha2
> Reporter: Ram
> Assignee: Bruno P. Kinoshita
> Priority: Minor
> Fix For: 1.0-alpha3
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> In BMPImageParser class, the values are typecasted to int before rounding off
> so output varies(other parsers has this logic correct).
> int physicalWidthDpi = (int)((double)bhi.hResolution * 0.0254D);
> int physicalHeightDpi = (int)((double)bhi.vResolution * 0.0254D);
>
> Expected :
> int physicalWidthDpi = (int)*Math.round*((double)bhi.hResolution * 0.0254D);
> int physicalHeightDpi = (int)*Math.round*((double)bhi.vResolution * 0.0254D);
--
This message was sent by Atlassian Jira
(v8.3.4#803005)