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

Emmanuel Bourg updated SANSELAN-14:
-----------------------------------

      Description: 
Hi all,

Two things. The first is minor. There is a System.out.println() that should be 
commented out in the BMP code. I see a lot of lines like this:

"bits_per_sample: 8"

The second is an error. When I create a BMP with Sanselan, everything works, 
and I can load the output into OpenOffice without problem from the System 
Clipboard. However, when trying to recreate the BufferedImage with Sanselan 
from the same exact output Sanselan created, I get the following error:

{code}
org.apache.sanselan.ImageReadException: BMP: Strange BitmapDataOffset: 266 
(expected: 1078, PaletteLength: 1024, header_size: 54)
        at 
org.apache.sanselan.formats.bmp.BmpImageParser.readImageContents(BmpImageParser.java:317)
        at 
org.apache.sanselan.formats.bmp.BmpImageParser.getBufferedImage(BmpImageParser.java:553)
        at org.apache.sanselan.Sanselan.getBufferedImage(Sanselan.java:1157)
        at org.apache.sanselan.Sanselan.getBufferedImage(Sanselan.java:1056)
        at org.apache.sanselan.Sanselan.getBufferedImage(Sanselan.java:1029)
{code}

Let me know if you have any ideas about that.

Thanks,
Kevin

  was:
Hi all,

Two things. The first is minor. There is a System.out.println() that should be 
commented out in the BMP code. I see a lot of lines like this:

"bits_per_sample: 8"

The second is an error. When I create a BMP with Sanselan, everything works, 
and I can load the output into OpenOffice without problem from the System 
Clipboard. However, when trying to recreate the BufferedImage with Sanselan 
from the same exact output Sanselan created, I get the following error:

org.apache.sanselan.ImageReadException: BMP: Strange BitmapDataOffset: 266 
(expected: 1078, PaletteLength: 1024, header_size: 54)
        at 
org.apache.sanselan.formats.bmp.BmpImageParser.readImageContents(BmpImageParser.java:317)
        at 
org.apache.sanselan.formats.bmp.BmpImageParser.getBufferedImage(BmpImageParser.java:553)
        at org.apache.sanselan.Sanselan.getBufferedImage(Sanselan.java:1157)
        at org.apache.sanselan.Sanselan.getBufferedImage(Sanselan.java:1056)
        at org.apache.sanselan.Sanselan.getBufferedImage(Sanselan.java:1029)

Let me know if you have any ideas about that.

Thanks,
Kevin

    Fix Version/s: 0.97
    
> Two issues with BMPs.
> ---------------------
>
>                 Key: SANSELAN-14
>                 URL: https://issues.apache.org/jira/browse/SANSELAN-14
>             Project: Commons Sanselan
>          Issue Type: Bug
>    Affects Versions: 0.94-incubator
>         Environment: Windows, Mac, Linux, Sanselan 0.94
>            Reporter: Kevin Theisen
>            Priority: Minor
>             Fix For: 0.97
>
>         Attachments: SanselanTest.bmp
>
>
> Hi all,
> Two things. The first is minor. There is a System.out.println() that should 
> be commented out in the BMP code. I see a lot of lines like this:
> "bits_per_sample: 8"
> The second is an error. When I create a BMP with Sanselan, everything works, 
> and I can load the output into OpenOffice without problem from the System 
> Clipboard. However, when trying to recreate the BufferedImage with Sanselan 
> from the same exact output Sanselan created, I get the following error:
> {code}
> org.apache.sanselan.ImageReadException: BMP: Strange BitmapDataOffset: 266 
> (expected: 1078, PaletteLength: 1024, header_size: 54)
>       at 
> org.apache.sanselan.formats.bmp.BmpImageParser.readImageContents(BmpImageParser.java:317)
>       at 
> org.apache.sanselan.formats.bmp.BmpImageParser.getBufferedImage(BmpImageParser.java:553)
>       at org.apache.sanselan.Sanselan.getBufferedImage(Sanselan.java:1157)
>       at org.apache.sanselan.Sanselan.getBufferedImage(Sanselan.java:1056)
>       at org.apache.sanselan.Sanselan.getBufferedImage(Sanselan.java:1029)
> {code}
> Let me know if you have any ideas about that.
> Thanks,
> Kevin

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

        

Reply via email to