You are here

HowTo send commandline parameter to gimp-2.2.exe?

4 posts / 0 new
Last post
ms_news
Offline
Last seen: 16 years 1 month ago
Joined: 2006-09-27 06:40
HowTo send commandline parameter to gimp-2.2.exe?

Hello,

first thanks for PortableApps, its a greate job u do.

I work long with PortApps but now i have a problem but no solution.

I will start PortGimp with Parameters but don´t know how.

Normal Gimp i start like this:
./gimp-2.2.exe -c -i -d -b '(script-fu-glossy-logo "$1" 100 "Eras" "Shadows 2" FALSE "Shadows 2" FALSE 5 "255 255 255" FALSE "Electric Blue" FALSE "Electric Blue" FALSE "Parque #1" TRUE TRUE 8 8)'

but how under PortGimp?

I tried this:
PortableGIMP.ini
[PortableGIMP]
AdditionalParameters=-c -i -d -b '(script-fu-glossy-logo "Test" 100 "Eras" "Shadows 2" FALSE "Shadows 2" FALSE 5 "255 255 255" FALSE "Electric Blue" FALSE "Electric Blue" FALSE "Parque #1" TRUE TRUE 8 8)'
WaitForGIMP=true

and this:
[PortableGIMP]
AdditionalParameters="-c -i -d -b '(script-fu-glossy-logo "Test" 100 "Eras" "Shadows 2" FALSE "Shadows 2" FALSE 5 "255 255 255" FALSE "Electric Blue" FALSE "Electric Blue" FALSE "Parque #1" TRUE TRUE 8 8)'"
WaitForGIMP=true

but it won´t work.

Can u help me. please?

I will start gimp in batch mode with the scriptfu scrpt "glossy.scm" with the parameters for "glossy.scm" u see in PortableGIMP.ini

Thx for help
ms_news

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 14 years 6 months ago
Joined: 2006-01-06 21:27
Well

Firstly, update to GIMP Portable Biggrin
Try
GIMPPortable.exe -c -i -d -b '(script-fu-glossy-logo "Test" 100 "Eras" "Shadows 2" FALSE "Shadows 2" FALSE 5 "255 255 255" FALSE "Electric Blue" FALSE "Electric Blue" FALSE "Parque #1" TRUE TRUE 8 8)'
----
R McCue
PortaBlog Home and My Website
And before anyone complains about the grammar, I'm so jetlagged that my
hands aren't even in the same time zone...

"If you're not part of the solution, you're part of the precipitate."

ms_news
Offline
Last seen: 16 years 1 month ago
Joined: 2006-09-27 06:40
Thanks for your hint,

Thanks for your hint,

so now i tried it with GIMPPortable.exe but it´s the same Problem like PortableGIMP.exe it starts hiden (batch mode) but never save the file or exit gimp.

---EDIT---

So i found the Problem, it´s always the same "brainless shell"-Problem. All Windows Apps can´t give the correct Parameters to gimp.
so i tried to run "sh.exe GIMPPortable.exe +Parameters" and all work fine, so GIMPPortable.exe can´t give all Parameters to gimp-2.2.exe.

thx for help
ms_news

leomayleoamy
Offline
Last seen: 17 years 1 month ago
Joined: 2007-03-01 22:17
About GimpPortable using batch mode on windows

Hi, ms news,
Thank u for exploring for the method of adding "sh" before the GimpPortable command, but I'd like to know if u run GimpPortable under cygwin or mingw or some other tools that can simulate unix-like OS under Windows, thanks a lot, my mail-box is leomayleomay@gmail.com.

Topic locked