Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Number of color/alpha components exception when reading PNG images #20

Open
mksplg opened this issue Nov 4, 2014 · 0 comments
Open
Assignees
Labels
Milestone

Comments

@mksplg
Copy link
Member

mksplg commented Nov 4, 2014

When reading certain PNG images the following exception is thrown:

Exception in thread "main" java.lang.IllegalArgumentException: Number of color/alpha components should be 4 but length of bits array is 3
    at java.awt.image.ColorModel.<init>(ColorModel.java:341)
    at java.awt.image.ComponentColorModel.<init>(ComponentColorModel.java:273)
    at at.ac.tuwien.photohawk.evaluation.colorconverter.ICCProfileColorConverter.<init>(ICCProfileColorConverter.java:53)
    at at.ac.tuwien.photohawk.evaluation.colorconverter.srgb.SRGBColorConverter.<init>(SRGBColorConverter.java:39)
    at at.ac.tuwien.photohawk.evaluation.qa.SsimQa.evaluate(SsimQa.java:71)
    at at.ac.tuwien.photohawk.commandline.Ssim.evaluate(Ssim.java:116)
    at at.ac.tuwien.photohawk.commandline.Photohawk.init(Photohawk.java:112)
    at at.ac.tuwien.photohawk.commandline.Photohawk.main(Photohawk.java:52)

One example where the problem occurrs is file 920000.png from govdocs.
920000

@mksplg mksplg added the bug label Nov 4, 2014
@mksplg mksplg self-assigned this Nov 4, 2014
@mksplg mksplg added this to the 0.0.3 milestone Nov 4, 2014
luis100 added a commit to luis100/photohawk that referenced this issue Aug 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant