Saturday, February 14, 2009

Running Photoshop plug-ins in GIMP

Pspi is a GIMP plug-in that runs 3rd-party Photoshop plug-in filters

Photoshop plug-in filters are actually Windows DLLs, which are dynamically loaded into the plug-in host process's address space. They are files with the extension .8bf, though, not .dll.Unlike GIMP plug-ins, 3rd-party Photoshop plug-ins don't use any common user interface library. (GIMP plug-ins use GTK+, obviously.)

Windows

The Windows package includes just pspi.exe. Put it in your GIMP plug-ins folder.

Linux

The Linux packages include three files:

  • README.linux
  • pspi, a small shell script
  • pspi.exe.so, the binary that wine runs

Copy pspi and pspi.exe.so to your personal GIMP plug-ins folder, typically ~/.gimp-2.4/plug-ins .

When you run GIMP it will issue a warning "wire_read(): error" as pspi.exe.so can't be started directly. (The pspi script can, though, and is from GIMP's point of view a GIMP plug-in.) This warning is harmless (GIMP just ignores that file then), but if you want to avoid it, move pspi.exe.so somewhere else and modify the pspi script to point to its new location instead.

After starting GIMP, go to the Xtns:Photoshop Plug-in Settings and enter the folder where you are going to keep the 3rd-party Photoshop plug-ins (.8bf files) that you want to use in GIMP.

Preferrably you should use an initially empty folder for this, and then install (copy) Photoshop plug-ins there one by one, verifying that each works. It isn't really useful to rush and install a shitload of Photoshop plug-ins at once and assume they all will work under pspi.

There is also a tarball with the object files. You can try to use those if the binaries don't work on your distro. Use winegcc to link, add the gimp plug-in libraries (output of pkg-config --libs gimp-2.0), -ladvapi32 and -lgdi32. Check the src/Makefile.am for details.

The Windows, SUSE and Ubuntu packages are by me. The Fedora Core 5 packages are provided by Veit Wahlich .



0 comments: