在 Linux 上使用 GIMP 调整图片亮度的实用方法
一 基础快速法 亮度 对比度
二 精细控制法 曲线
三 局部调整与进阶技巧
四 批量处理与命令行
gimp -i -b '(let* ((image (car (gimp-file-load RUN-NONINTERACTIVE "input.jpg" "input.jpg")))
(drawable (car (gimp-image-get-active-layer image))))
(gimp-image-undo-group-start image)
(gimp-levels-stretch drawable)
(gimp-image-undo-group-end image)
(gimp-file-save RUN-NONINTERACTIVE image drawable "output.jpg" "output.jpg")
(gimp-image-delete image))' -b '(gimp-quit 0)'
说明:将 input.jpg 与 output.jpg 替换为实际路径;更多批量能力可通过 插件/脚本 扩展。五 导出与保存建议