Menu

Script-Fu -> Auto Contrast




Automatically adjusts contrast of the current drawable by duplicating the layer, setting the new layer to Value blend mode, then running Auto Levels on the Value layer.

If "Merge layer" is left unchecked, you can open the Layers dialog and adjust opacity of the newly created layer, effectively lessening the amount of change it has made to the image.

Auto Contrast Dialog







Original Image




Auto Contrast Result:




Download

FU_contrast_auto-contrast.scm




Installation Instructions:


;  This script should be placed 
;  in the user or system-wide script folder.
;
;  Windows Vista/7/8/10)
;  C:\Program Files\GIMP 2\share\gimp\2.0\scripts
;  or
;  C:\Users\YOUR-NAME\.gimp-2.8\scripts
; 
;  Windows XP
;  C:\Program Files\GIMP 2\share\gimp\2.0\scripts
;  or
;  C:\Documents and Settings\yourname\.gimp-2.8\scripts   
; 
;  Linux
;  /home/yourname/.gimp-2.8/scripts