You are here

How to get Gimp Portable to use Ghostscript Portable

9 posts / 0 new
Last post
CNBlackwood
Offline
Last seen: 2 years 2 weeks ago
Joined: 2008-07-11 10:09
How to get Gimp Portable to use Ghostscript Portable

Apparently GIMP uses Ghostscript in order to import eps images. I have both Gimp Portable and Ghostscript Portable installed, and when I try to import an eps file in Gimp, I get a message saying Gimp couldn't find Ghostscript and to try using the environment variable GS_PROG to indicate where it is.

I haven't used environment variables since DOS times, can someone tell me how to set one when Gimp Portable runs? Also, in PortableApp\CommonFiles\Ghostscript\bin\ I have several executable file: gswin64.exe, gswin64c.exe, gsdll64.dll, gswin32.exe, gswin32c.exe and gsdll32.dll. I'm running Windows 7 64-bit, so maybe I need one of the three 64-bit files, but maybe I need a 32-bit version if Gimp is 32-bit.

John T. Haller
John T. Haller's picture
Online
Last seen: 5 min 49 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Not Sure

Ghostscript Portable came out after GIMP, so GIMP hasn't been updated to support it yet. Not sure how to point it offhand unless there is a path you can set (the launcher would then update it). 32-bit apps would use 32-bit Ghostscript regardless of what kind of OS they run on.

Sometimes, the impossible can become possible, if you're awesome!

Gord Caswell
Gord Caswell's picture
Offline
Last seen: 2 days 10 hours ago
DeveloperModerator
Joined: 2008-07-24 18:46
Custom Code

Oops, GIMP isn't PAL-based yet. Ignore everything below.

You need to use custom code until GIMP is updated.

You can add this custom.nsh for the Ghostscript handling: http://pastebin.com/dBHWZne2

Also add [Activate]: Ghostscript=find to the launcher.ini

This will add the GS_PROG environment variable for GIMP to find.

John T. Haller
John T. Haller's picture
Online
Last seen: 5 min 49 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Could Be

We could update GIMP to PAL. We'd need to give it a good once-over. The Dev branch of GIMP Portable needs an update right now actually if you feel like taking a look.

Sometimes, the impossible can become possible, if you're awesome!

Gord Caswell
Gord Caswell's picture
Offline
Last seen: 2 days 10 hours ago
DeveloperModerator
Joined: 2008-07-24 18:46
I'll give it a go

Sure, doesn't hurt to try. Gives me a chance to figure out NSIS a bit more. Smile

CNBlackwood
Offline
Last seen: 2 years 2 weeks ago
Joined: 2008-07-11 10:09
That would be great, and if

That would be great, and if you could include the environment variable for Ghostscript I would be grateful.

self evident
Offline
Last seen: 11 years 5 days ago
Joined: 2012-02-03 18:46
Set GS_PROG to location of gswin32.exe, (or gswin64.exe)

The following instructions are for XP, but are similar for Win7:

Right-Click My Computer> Properties > System > Advanced > Environment Variables >New:
...or...
Control Panel > System > Advanced > Environment Variables >New:

Variable Name : GS_PROG
Variable Value: \Ghostscript_Portable\bin\gswin32.exe

Then restart Gimp.

Gord Caswell
Gord Caswell's picture
Offline
Last seen: 2 days 10 hours ago
DeveloperModerator
Joined: 2008-07-24 18:46
Not Portable

That only sets the environment variable for that computer.

self evident
Offline
Last seen: 11 years 5 days ago
Joined: 2012-02-03 18:46
Doh! <:( I guess that's how

Doh! <: i="" guess="" that="" how="" interpreted="" the="" original="" question.="" didn="" even="" think="" of="" aspect="" inquiry...="" by="" default="" portableapps="" versions="" any="" program="" use="" on="" all="" my="" machines="" so="" using="" a="" usb="" stick="" copy="" occur="" to="" me.="" oh="" well.="" in="" case="" it="" does="" work="" if="" per="" machine="" basis...="" :="">

Log in or register to post comments