| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 5,078
» Latest member: randstr
» Forum threads: 7,790
» Forum posts: 42,312
Full Statistics
|
| Latest Threads |
Perspective tool anchors.
Forum: Extending the GIMP
Last Post: LeonardCarlCampbell
10 hours ago
» Replies: 6
» Views: 238
|
Safe Technique to Unlock ...
Forum: Watercooler
Last Post: denzjos
Yesterday, 11:43 AM
» Replies: 2
» Views: 146
|
script-fu examples - batc...
Forum: Extending the GIMP
Last Post: rich2005
Yesterday, 09:56 AM
» Replies: 0
» Views: 69
|
Writing a simple python p...
Forum: Scripting questions
Last Post: rich2005
01-23-2026, 04:12 PM
» Replies: 7
» Views: 352
|
How to get the full path ...
Forum: Extending the GIMP
Last Post: nmw01223
01-23-2026, 02:52 PM
» Replies: 10
» Views: 582
|
Gradient Tool
Forum: General questions
Last Post: james22
01-23-2026, 01:29 PM
» Replies: 4
» Views: 308
|
Basic Tutorial Example
Forum: Extending the GIMP
Last Post: nmw01223
01-22-2026, 02:52 PM
» Replies: 6
» Views: 1,475
|
affinity now free
Forum: Other graphics software
Last Post: denzjos
01-21-2026, 09:13 AM
» Replies: 0
» Views: 147
|
Where does python debug o...
Forum: Extending the GIMP
Last Post: nmw01223
01-20-2026, 11:37 PM
» Replies: 3
» Views: 268
|
'The Windows 11 Crisis' V...
Forum: Watercooler
Last Post: Tas_mania
01-20-2026, 08:59 PM
» Replies: 3
» Views: 377
|
|
|
| Script-fu resize images in directory |
|
Posted by: LightTunnelEtc - 07-31-2018, 08:11 PM - Forum: Scripting questions
- Replies (5)
|
 |
Hello all! First post here so I hope this make sense.
I am trying to resize images to the highest multiple of 4 (unless it already is a multiple of 4).
My script runs without any errors but does absolutely nothing to the images in the directory.
I tested out individual elements of the script in the GIMP console (or whatever it is called) and the ones I could test work fine.
I feel like I'm missing something simple.
Any ideas? The script is below.
Code:
; example pattern form because it starts in C: "/Users/Etc/*.png"
(script-fu-register
"script-fu-resize-4" ;func name
"Resize To Multiple Of 4" ;menu label
"Rounds Canvas Size To Nearest Multiple Of 4" ;description
"Me" ;author
"copyright 2018, Me" ;copyright notice
"May 30, 2018" ;date created
"" ;image type that the script works on
SF-STRING "Folder Pattern" "/*.png"
)
(script-fu-menu-register "script-fu-resize-4" "<Image>/File")
(define (script-fu-resize-4 pattern)
(let*
(
(filelist (cadr (file-glob pattern 1)))
)
(while (not (null? filelist))
(let*
( ; variables
(filename (car filelist))
(image (car (gimp-file-load RUN-NONINTERACTIVE filename filename)) )
(drawable (car (gimp-image-get-active-layer image)) )
(width (car (gimp-image-width image)) )
(height (car (gimp-image-height image)) )
)
; statements
(set! width (* 4 (ceiling (/ width 4))) )
(set! height (* 4 (ceiling (/ height 4))) )
(set! width (inexact->exact width) )
(set! height (inexact->exact height) )
(gimp-image-resize image width height 0 0)
(gimp-file-save RUN-NONINTERACTIVE image drawable filename filename)
(gimp-image-delete image)
)
;move to next file in folder
(set! filelist (cdr filelist))
)
)
)
|
|
|
| Measurement tool |
|
Posted by: al.da.drone - 07-31-2018, 02:10 PM - Forum: General questions
- Replies (2)
|
 |
Hi there I wonder if someone would be kind enough to answer this question for me as I am struggling to get the hang of Gimp.
I am sure there is another way of doing this, however I have just come across the measuring tool so I can measure things in order to get everything in proportion like text..So i am measuring a line with the measuring tool however it seems that I can only measure one line at a time rather than have multiple lines. You must be able to get multiple lines ?
Sorry for asking a silly question...
|
|
|
| Win7 64bit Missing libraries in 2.10.4 |
|
Posted by: silverb - 07-31-2018, 01:17 PM - Forum: Gimp 2.10
- Replies (2)
|
 |
Every time I load Gimp I have to 'OK' a list of 9 missing libraries; It's making start up very slow and tedious.
I've tried reporting this, maybe I'm being thick, but I can't find Gimp in Bugzilla.
Anyone else having this problem?
The libraries are:
libfftw3-3.dll
libtif3.dll
libtiff3.dll
libgdkglext-win32-1.0-0.dll
liblqr-1-0.dll
libffttw-3.dll
libpng15-15.dll
pcre.dll
|
|
|
|