3

我有几百张照片。每张照片都是一个对象。并对每张照片重复相同的步骤:打开,选择区域;裁剪,调整大小,修复亮度,保存。

我尝试自动化该过程:编写脚本并将其挂在热键上。

(define (script-fu-cut800 inText inFont inFontSize inTextColor) 

; get the coordinates of allocation 
(gimp-image-get-selection (image)) 

(let * (
(original-left (car (????))) 
(original-top (car (????))) 
(original-width (car (gimp-image-width image))) 
(original-height (car (gimp-image-height image))) 
(new-width (- original-width (+ right left))) 
(new-height (- original-height (+ top bottom))) 
) 

; crop the selected image 
(gimp-image-crop image new-width new-height left top) 

; resize to 800 * 800 
(gimp-image-resize image 800 800 0 0) 

; open dialogue correction levels 
(?????) 

; save as JPG 80% compression of the same name 
(file-jpeg-save ????) 

))
4

0 回答 0