It is currently Sat Jul 11, 2026 11:15 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Passport size photo script for GIMP 3.0
PostPosted: Wed Apr 30, 2025 10:37 pm  (#1) 
Offline
GimpChat Member
User avatar

Joined: Apr 25, 2011
Posts: 121
Location: Taiwan
idPhoto3.scm

First use rectangle selection tool define a region
Image

Script-Fu->Photo->大頭照排版(idPhoto) ... open dialog
[Width] and [Height] are only available when [Printing paper size] selections are [Custom]
And
[idPhoto width] and [idPhoto height] are only available when [idPhoto size] selections are [Custom]
Image
It's not complete v3 format
When i use script-fu-register-filter
I don't know why SF-ADJUSTMENT step_inc is always plus/minus 1, No matter what I write
Like this
SF-ADJUSTMENT _"大頭照寬度(公分)(idPhoto width)(cm)" (list 3.5 1.0 10.0 0.1 0.5 1 SF-SPINNER)
and this
SF-ADJUSTMENT _"解析度(dpi)" '(300 10 1000 10 100 0 SF-SPINNER)

*** Update to v3 format ***
SF-ADJUSTMENT step_inc still always plus/minus 1
But use mm as the unit instead of the original cm
Image

Result
Image

In addition, since your selection may not fit the scale of the passport photo, after clicking “OK”, the script will change the scale of your selection .If you feel that the size of the photo is not ideal, you can move the selection to the area you want. After that, rerun the script to create a new image

_________________
Sorry for my poor English, I use Google Translate.
There may be something wrong, Please understand.

GIMP 2.10.38 rev1 portable+GAP+G'MIC+nufraw+Beautify+MathMap+...


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Passport size photo script for GIMP 3.0
PostPosted: Thu May 01, 2025 7:45 am  (#2) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2646
Location: Poland
Hi James.

:tyspin
Yes, it's me again, the first (but maybe not the last) to comment.
I guess I didn't understand what you mean about the decimal places.
For me the script works according to the given parameters:
step_inc (Increment/decrement value) = 0.1
(shooting in the dark: you have two different versions of the scrip). :)

Image

_________________
Image


Top
 Post subject: Re: Passport size photo script for GIMP 3.0
PostPosted: Thu May 01, 2025 8:33 pm  (#3) 
Offline
GimpChat Member
User avatar

Joined: Apr 25, 2011
Posts: 121
Location: Taiwan
MareroQ wrote:
Hi James.

:tyspin
Yes, it's me again, the first (but maybe not the last) to comment.
I guess I didn't understand what you mean about the decimal places.
For me the script works according to the given parameters:
step_inc (Increment/decrement value) = 0.1
(shooting in the dark: you have two different versions of the scrip). :)

[ Image ]

The screenshot you attached is using V2 script-fu-register, It work OK, but now is deprecated.

Image
This is use V3 script-fu-register-filter new registration function
SF-ADJUSTMENT step_inc still always plus/minus 1
So i change mm as the unit instead of the original cm

_________________
Sorry for my poor English, I use Google Translate.
There may be something wrong, Please understand.

GIMP 2.10.38 rev1 portable+GAP+G'MIC+nufraw+Beautify+MathMap+...


Top
 Post subject: Re: Passport size photo script for GIMP 3.0
PostPosted: Thu May 01, 2025 9:01 pm  (#4) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2646
Location: Poland
After all, the first version, published here, changes (as assumed) values ​​every 0.1 (OK. Version 2 works, V3 script-fu-register-filter new registration function does not want.)? Outdated? The most important thing is that it works!

Image

_________________
Image


Top
 Post subject: Re: Passport size photo script for GIMP 3.0
PostPosted: Thu May 01, 2025 9:45 pm  (#5) 
Offline
GimpChat Member
User avatar

Joined: Apr 25, 2011
Posts: 121
Location: Taiwan
According to official documents
https://developer.gimp.org/resource/script-fu/script-fu-changes-v3/
it says
"In the future, the GIMP project might obsolete script-fu-register."

So i update to V3 new registration functions, although SF-ADJUSTMENT step_inc still always plus/minus 1

_________________
Sorry for my poor English, I use Google Translate.
There may be something wrong, Please understand.

GIMP 2.10.38 rev1 portable+GAP+G'MIC+nufraw+Beautify+MathMap+...


Top
 Post subject: Re: Passport size photo script for GIMP 3.0
PostPosted: Thu May 01, 2025 9:56 pm  (#6) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2646
Location: Poland
Thanks for the link.

But it's also written there:

A lucky few existing scripts may work in GIMP v3 without change. :)

_________________
Image


Top
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group