Added some Pics to a module - strange colors

Hello,

I have switched some images in a vassal module I use but it seems that some of the pictures are really wierd. They appear in strange colors in Vassal. But when I look at them in explorer (or irfan view) they seem right.

Do you know those problems? Is this some kind of protection or an error in the jpg?
download/file.php?mode=view&id=2477

Regards

Thus spake mrjohndoe:

Hello,

I have switched some images in a vassal module I use but it seems that
some of the pictures are really wierd. They appear in strange colors in
Vassal. But when I look at them in explorer (or irfan view) they seem
right.

Do you know those problems? Is this some kind of protection or an error
in the jpg?
download/file.php?mode=view&id=2477[1]

This is yet another manifestation of Java’s buggy JPEG loader or our
workarounds, which are based on incomplete knowledge of precisely how
the JPEG loader is buggy, overcorrecting for the bugs.

Switch the images to PNGs and you won’t have this problem.


J.

Thank you. Should I send you the pics for investigation? When I open them in irfan view I can’t see any differences to other jpegs.

There are round about 350 jpegs and only newer ones (scanned last month) making those problems …

Hello, thank you.
Should I send you the pics for bughunting? It seems that only newer pictures (which where scanned last month) make this error. When I look at them at irfan view I can’t see any difference to the 300 other jpegs in this module which works fine …

Thus spake mrjohndoe:

Hello, thank you.
Should I send you the pics for bughunting? It seems that only newer
pictures (which where scanned last month) make this error. When I look
at them at irfan view I can’t see any difference to the 300 other jpegs
in this module which works fine …

I’d be happy to look at one and tell you what the problem is, but I’m
not willing to sink further time into working around Java’s slapdash
JPEG decoder when we’re not going to use it in VASSAL 4. If you want
these images to display correctly, save them as PNGs.


J.