commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Damjan Jovanovic (Resolved) (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SANSELAN-72) Incorrect reading TIFF file
Date Fri, 13 Apr 2012 19:44:16 GMT

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

Damjan Jovanovic resolved SANSELAN-72.
--------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.0

The problem with the grey background was that Sanselan was using the worst possible algorithm
described in Section 9.1 of the PNG spec. I've changed it to use the best one as of commit
1325915.

Both issues are now gone -> resolving fixed.

                
> Incorrect reading TIFF file
> ---------------------------
>
>                 Key: SANSELAN-72
>                 URL: https://issues.apache.org/jira/browse/SANSELAN-72
>             Project: Commons Sanselan
>          Issue Type: Bug
>          Components: Format: PNG, Format: TIFF
>    Affects Versions: 1.x
>            Reporter: VVD
>             Fix For: 1.0
>
>         Attachments: in.png, in.tif, out-png-IM.png, out-tif.png
>
>
> I found 2 bugs.
> I have tif file in.tif.
> 1. After convert it to png (bmp, tga, etc) by Sanselan it getting horizontal lines.
> {code}
> Sanselan.writeImage(Sanselan.getBufferedImage(new File("in.tif")), new File("out-tif.png"),
ImageFormat.IMAGE_FORMAT_PNG, null);
> {code}
> gwenview, eog, kolourpaint, gimp, etc show in.tif without lines and out.png with lines.
> For example 1st line at ~860 points from top and in full width of picture.
> 2. After convert it to png by convert utility from ImageMagic, and then convert it to
png (bmp, tga, etc) by Sanselan it became "gray" - all white pixels become gray.
> {code}$ convert in.tif in.png{code}
> {code}
> Sanselan.writeImage(Sanselan.getBufferedImage(new File("in.png")), new File("out-png-IM.png"),
ImageFormat.IMAGE_FORMAT_PNG, null);
> {code}
> gwenview, eog, kolourpaint, gimp, etc show in.png as black and white, but out-png-IM.png
as black and gray.
> I'll attach all 4 files.

--
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

        

Mime
View raw message