This script analyses RGB channel data to determine whether or not to apply a levels adjustment. If all three colour channels have a restricted range, then the adjustment is applied. A conservative approach is used: Auto Color Correction Options

This script is primarily intended for use in batch operation as custom alterations to single images will be more beneficial. The range fix will be included in the next version of LinearSharpenMenu.

The range fix is also conservative in that it is only applied to images fulfilling certain criteria; on the basis that "every edit is destructive", it seemed better to limit coverage. However, my testing, on about 100 images, has determined that few are adversely affected by this adjustment. Images with a very narrow histogram will almost certainly benefit: Sample image

Click on a link to download the matching script: Range Fix

Read installation instructions and running a script.

Version 1.0 12 Jul '02 Copyright © Roger Cavanagh and Jeremy Cavanagh
These scripts are provided free for personal use.
No liability will be accepted for any consequences arising from the use of these scripts.
Each script may be copied IN ITS ENTIRETY to others provided no charge is made other than for media.