This article describes why thumbnails for some JPEG images may be too dark if they are rendered with Java version of Image Uploader.OverviewWhen Java version of Image Uploader is used to upload JPEG files, under certain conditions the generated thumbnails will be way too dark, as on the picture below.

Thumbnail generated with Image Uploader

Normal thumbnail
How to ReproduceThis problem occurs only in Java version of Image Uploader with JPEG files created with Nikon cameras which have the ICC profile "Nikon sRGB 4.0.0.3001." under the following conditions:
- Thumbnail size larger than EXIF thumbnails (typically 160 pixels).
- Thumbnail resize quality is Medium.
ReasonWhen Medium quality is used, Image Uploader uses the Java ImageIO library to read the image. Due a bug in this library, it reads JPEG files created with Nikon cameras which have the ICC profile "Nikon sRGB 4.0.0.3001." incorrectly.
For more details see
bug 6372769 in the Java bug database.
SolutionCurrently the only solution of this problem is to set the resize quality to High:
Code:iu.addParam("PreviewThumbnailResizeQuality", "High");
This bug should be fixed by Java developers in the next release of the Java platform.
NotesThis problem does not concern neither ActiveX version of Image Uploader, nor any JPEG files with ICC profiles different from "Nikon sRGB 4.0.0.3001."
Best regards,
Fedor Skvortsov