qfhahn / java-image-scaling

Automatically exported from code.google.com/p/java-image-scaling
Other
0 stars 0 forks source link

ArrayIndexOutOfBounds with 0.8.1 and particular image(s) #10

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. scale the attached file to any size (e.g. 50x50), using ResampleOp

What is the expected output? What do you see instead?

I always get the following exception with this particular file, other files
work perfectly:

java.lang.ArrayIndexOutOfBoundsException: 150
    at
com.mortennobel.imagescaling.ResampleOp.horizontallyFromSrcToWork(ResampleOp.jav
a:380)
    at com.mortennobel.imagescaling.ResampleOp.doFilter(ResampleOp.java:144)
    at
com.mortennobel.imagescaling.AdvancedResizeOp.filter(AdvancedResizeOp.java:81)

What version of the product are you using? On what operating system?

latest 0.8.1, on both Windows & Linux.

Please provide any additional information below.

I think it has got something to do with the number of channels and this
particular image, but I cannot figure out what the problem is.

Please help me with this one!

Original issue reported on code.google.com by niko.the...@sybit.de on 2 Nov 2009 at 5:55

Attachments:

GoogleCodeExporter commented 8 years ago
Ok - I have created a test-case that reproduced the error. I hopefully have a 
fix soon.

- Morten

Original comment by m%nobel-...@gtempaccount.com on 2 Nov 2009 at 8:32

GoogleCodeExporter commented 8 years ago
Fixed. Is committed and will be available in 0.8.2

- Morten

Original comment by m%nobel-...@gtempaccount.com on 2 Nov 2009 at 9:31

GoogleCodeExporter commented 8 years ago
Great, thanks for the quick action. Can you tell me when 0.8.2 will be 
available?

Niko

Original comment by niko.the...@sybit.de on 3 Nov 2009 at 6:26