After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 689207 - Opening EPS files fails in GIMP 2.8.2 on 64 bit Windows platforms
Opening EPS files fails in GIMP 2.8.2 on 64 bit Windows platforms
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: Windows Installer
2.8.4
Other Windows
: Normal normal
: 2.8
Assigned To: Jernej Simončič
Jernej Simončič
: 689925 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2012-11-28 10:11 UTC by Twizzy Dizzy
Modified: 2016-10-03 14:24 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Screenshot (15.23 KB, image/png)
2012-11-28 10:12 UTC, Twizzy Dizzy
Details
Eps file test made with illustrator CS3 (448.00 KB, application/x-compressed-tar)
2012-12-11 08:36 UTC, delaunay
Details
GIMP and GhostScript (87.91 KB, image/png)
2013-05-09 03:44 UTC, Jako Grobler
Details

Description Twizzy Dizzy 2012-11-28 10:11:16 UTC
Hi everybody,

this is my first report in this bugtracker.


Basic Information:

- Gimp 2.8.2
- Windows 7 Professional, 64 Bit
- GPL Ghostscript 9.0.6, 32 Bit
- Global environment variable GS_PROG is set to
  C:\Program Files (x86)\gs\gs9.06\bin\gswin32c.exe (which exists)

Problem: 

We recently switched from Gimp 2.6 to Gimp 2.8.2. Under 2.6 it was
possible to open EPS-Files in Gimp via Ghostscript, that's no longer
possible under 2.8.2.

The screenshot attached shows the error appearing after choosing
resolution and dpi. English translation is:

"C:\Users\admin\Desktop\E-TEK.eps" could not be opened: Postscript-File
C:\Users\admin\Desktop\E-TEK.eps could not be interpreted.

Things tried:

- Reinstalling Ghostscript
- Reinstalling Gimp

Have there been changes to GIMP EPS-Support which I've missed?

Regards and thanks in advance,
Thomas
Comment 1 Twizzy Dizzy 2012-11-28 10:12:19 UTC
Created attachment 230071 [details]
Screenshot

Error that appears after resolution import dialogue
Comment 2 Kevin Cozens 2012-11-28 20:00:19 UTC
I just tried loading a file called EuropeFlagBlueCMYK.eps (part of texmf-texlive) and it failed to load in a recent git master version of GIMP but the file does load in ghostview (gv) or the 2.6 version of GIMP.
Comment 3 Michael Natterer 2012-11-30 21:35:08 UTC
Kevin, can you attach the file please?
Comment 4 Michael Natterer 2012-11-30 21:35:36 UTC
And please set OS if you could reproduce it on non-windows.
Comment 5 Kevin Cozens 2012-12-01 16:31:21 UTC
Tizzy, Check if you have the (E)PS file loader in your version of GIMP by going to Help->Procedure Browser and looking for file-ps-load. If you do not see that entry your install of GIMP does not have the plug-in needed to load (e)ps files.

I was missing that file on my machine because I was missing a development package. I had been looking for a ghostscript-dev package when what I needed was libgs-dev. After installing it I am able to load eps files.
Comment 6 Mukund Sivaraman 2012-12-04 04:56:39 UTC
(In reply to comment #0)
> - Gimp 2.8.2
> - Windows 7 Professional, 64 Bit
> - GPL Ghostscript 9.0.6, 32 Bit
> - Global environment variable GS_PROG is set to
>   C:\Program Files (x86)\gs\gs9.06\bin\gswin32c.exe (which exists)

In GIMP 2.8.2, PostScript support is implemented as a plug-in which links to the Ghostscript library, instead of using Ghostscript as a separate program.

Which website did you download GIMP 2.8.2 for Windows from?

Please attach the EPS image which causes this problem.
Comment 7 Max Mustermann 2012-12-04 20:06:50 UTC
I tried to reproduce on my Win7 system with GIMP 2.8.2 from gimp-win.sourceforge.net, but all is fine here. 
Either your installation or the EPS file is broken. To find out the reason, please answer Mukunds questions. Thank you in advance.
Comment 8 Twizzy Dizzy 2012-12-06 23:00:40 UTC
Hi there,

just a quick note from my side, since I'm currently moving to another flat and don't have too much internet (not to speak of equipment for testing ;) ) these days...

I'll have a look at your comments when I'm back from holidays/move at my company.

So long,
Thomas
Comment 9 Michael Schumacher 2012-12-09 11:14:01 UTC
*** Bug 689925 has been marked as a duplicate of this bug. ***
Comment 10 Max Mustermann 2012-12-09 11:17:37 UTC
Ah, Michael was faster ;-)
Delaunay (reporter of bug #689925), can you please have a look at comment #6 and comment #7, i.e. try with GIMP from gimp-win.sourceforge.net and if the error still occurs, attach one of the affected EPS files here. Thank you in advance.
Comment 11 delaunay 2012-12-11 08:36:34 UTC
Created attachment 231245 [details]
Eps file test made with illustrator CS3

I have tested with many other EPS (created with other softs, downloaded from the web etc...). With GIMP 2.8.2 I can't open EPS files.
Comment 12 Michael Schumacher 2012-12-11 14:35:10 UTC
The attached example opens for me on XP SP3 32 bit - the file displays the same in both Irfanview and GIMP 2.8.2, white text on a cyan background. Is this the expected result?
Comment 13 delaunay 2012-12-11 17:27:20 UTC
Yes it is. But the bug is for Windows Seven 64 bits. I try with 3 differents laptops and always the same result... I will try with Seven 32 bits...Dont't know..
Comment 14 delaunay 2012-12-14 11:41:38 UTC
I try with Windows 7 32 bits and it works perfectly. 

I try with Windows 7 64 bits and gs9.06(64) or gs9.06(32) changing Global environment variable GS_PROG each time. I really can't open any EPS file. I think there's really a bug with the windows 64 bits edition and 2.8.2 version.
Comment 15 James Johnson 2012-12-27 14:10:59 UTC
Possible reasons / causes

1) x86 and x64 components cannot interact (limitation of the WOW64/32 emulator in Windows)

2) Installer is installing as x64 when requiring to be x86


***** Work A Round / Solution ******

Run the setup from commandline with a /32 to force it to install as a x86 application.

ie "C:\Tools\gimp-2.8.2-setup-1.exe /32"

Now currently working with EPS files on Windows 7 x64 Enterprise

For consistancy I selected "C:\Program Files (x86)\" as my install directory.

************************************

Hope it helps.
Comment 16 Thea 2013-01-03 21:26:26 UTC
I have encountered this same problem (I could not open eps files on a Windows 7 64 bit machine, even though gimp 2.8.0 was working), despite having the correct setup for environment variables.  James Johnson's solution (to force install as a 32 bit application) worked for me.
Comment 17 Michael Schumacher 2013-01-04 08:24:52 UTC
So we have to assume that either the file-ps plug-in or libgs do not work correctly on 64 bit Windows platforms.
Comment 18 James Johnson 2013-01-04 09:27:39 UTC
Without reviewing the source I can't be definate in my answer but I believe...

I think the issue is caused by a 32bit component trying to interact with a 64bit application

Ref WOW64/32 Interoperability issues
http://msdn.microsoft.com/en-gb/library/windows/desktop/aa384249(v=vs.85).aspx

Suggestion
Build a new gs componenet from the x64 version and release a new x64 GIMP installer with it

When I get time I'll try to investigate further (my 10m old daughter is being a pain)
Comment 19 Twizzy Dizzy 2013-01-04 14:06:09 UTC
Hi guys,

sorry it took me so long to get back to you. I'm answering all relevant comments in order of appearance:

Comment 5 Kevin Cozens

  the "file-ps-load" procedure is there. 

Comment 6 Mukund Sivaraman

  I downloaded Gimp from gimp-win.sourceforge.net

Comment 16 Thea

  Yeah, installing with the /32 install switched worked for me, too.


If I can be of further help with anything (e.g. testing), don't hesitate to ask :)


Regards so far,
Thomas
Comment 20 Sergey 2013-03-28 11:01:46 UTC
Hi all,

I would like to add some information on this bug.

Now I have the following configuration:
Windows 7 64-bit
Gimp 2.8.4 64-bit
Ghostscript 9.07 64-bit
So all the components are 64-bit.

I set the environment variable: 
GS_PROG = c:\Program Files\gs\gs9.07\bin\gswin64.exe

The problem is that GIMP still can't open EPS files giving the same error message.
Comment 21 Michael Schumacher 2013-03-28 12:07:18 UTC
Did you check whether an external Ghostscript is still being used at all? 

The postscript plug-in should now be using libgs (that's effectively the ghostscript renderer as a library), and that one is located in GIMP's bin directory. You can pretty much disregard any tutorial on the web that tells you to install or update Ghostscript and set environment variables now..

If you replace the DLL though, you might see a difference.
Comment 22 Sergey 2013-03-28 12:45:06 UTC
Hi,

Could you please explain more what and how I can check?
Comment 23 Cho Tan 2013-04-09 08:15:07 UTC
(In reply to comment #15)
> Possible reasons / causes
> 
> 1) x86 and x64 components cannot interact (limitation of the WOW64/32 emulator
> in Windows)
> 
> 2) Installer is installing as x64 when requiring to be x86
> 
> 
> ***** Work A Round / Solution ******
> 
> Run the setup from commandline with a /32 to force it to install as a x86
> application.
> 
> ie "C:\Tools\gimp-2.8.2-setup-1.exe /32"
> 
> Now currently working with EPS files on Windows 7 x64 Enterprise
> 
> For consistancy I selected "C:\Program Files (x86)\" as my install directory.
> 
> ************************************
> 
> Hope it helps.

how do you run this "C:\Tools\gimp-2.8.2-setup-1.exe /32"?i try running it from the administrator command prompt, nothing happens.
Comment 24 rickmastfan67 2013-04-09 08:25:35 UTC
(In reply to comment #23)
> (In reply to comment #15)
> > Possible reasons / causes
> > 
> > 1) x86 and x64 components cannot interact (limitation of the WOW64/32 emulator
> > in Windows)
> > 
> > 2) Installer is installing as x64 when requiring to be x86
> > 
> > 
> > ***** Work A Round / Solution ******
> > 
> > Run the setup from commandline with a /32 to force it to install as a x86
> > application.
> > 
> > ie "C:\Tools\gimp-2.8.2-setup-1.exe /32"
> > 
> > Now currently working with EPS files on Windows 7 x64 Enterprise
> > 
> > For consistancy I selected "C:\Program Files (x86)\" as my install directory.
> > 
> > ************************************
> > 
> > Hope it helps.
> 
> how do you run this "C:\Tools\gimp-2.8.2-setup-1.exe /32"?i try running it from
> the administrator command prompt, nothing happens.

If you're in Windows 7 x64, follow the following step:
(Start Button on your keyboard)+R
Then put in the full location where you have the GIMP installer located.

That's how you install the x86 version in an x64 system.
Comment 25 Sergey 2013-04-26 09:16:53 UTC
(In reply to comment #21)
> Did you check whether an external Ghostscript is still being used at all? 
> 
> The postscript plug-in should now be using libgs (that's effectively the
> ghostscript renderer as a library), and that one is located in GIMP's bin
> directory. You can pretty much disregard any tutorial on the web that tells you
> to install or update Ghostscript and set environment variables now..
> 
> If you replace the DLL though, you might see a difference.

Hi again,

So I removed the GS_PROG from my environment variables. I didn't change anything in the GIMP installation. It still doesn't open any of my EPS files. Error message is still the same.
Comment 26 Michael Schumacher 2013-04-26 09:25:51 UTC
GS_PROG is not supposed to have any effect anymore, so removing it won't change anything, either.
Comment 27 jrs 2013-05-01 03:02:32 UTC
Hope that helps


Com a versão gs905w32 deu certo
http://downloads.ghostscript.com/public/gs905w32.exe

Tenho um windows 8 64 Bits
Comment 28 Michael Schumacher 2013-05-01 06:19:25 UTC
So, has anyone tried to replace the libgs DLL and checked if this fixes anything? (see comment #21)?
Comment 29 delaunay 2013-05-01 12:44:09 UTC
For Windows users, the system must be as simple as possible. The easiest way would probably be to provide two distributions. (64 and 32 bits as Scribus)
Comment 30 sky2blu 2013-05-04 05:28:25 UTC
(In reply to comment #28)
> So, has anyone tried to replace the libgs DLL and checked if this fixes
> anything? (see comment #21)?

I'm having the same problem. I have Vista x64, though. External Ghostscript is working, gsviewer is working. I'll try replacing the DLL if you explain what it is and what I should replace it with.

I'm just glad I don't have to uninstall and reinstall Gimp!
Comment 31 msdobrescu@gmail.com 2013-05-08 12:06:39 UTC
On Windows 7 64 bit Enterprise I can't open EPS, even though I have provided the /32 flag at setup time for gimp-win 2.8.4.
Comment 32 Jako Grobler 2013-05-08 14:48:15 UTC
SOLVED.

If you have a 64 bit operating system, 64 bit version of GIMP 2.8.2 or higher, and GhostScript 64 bit then try this:

1) Back up the libgs-8.dll file in the GIMP bin folder.
2) Copy the gsdll64.dll file from the GhostScript bin folder to the GIMP folder.
3) Rename the copied gsdll64.dll file to libgs-8.dll.
4) Restart GIMP.

Enjoy!
Comment 33 Michael Schumacher 2013-05-08 15:23:51 UTC
Which version of ghostscript was that?
Comment 34 Jako Grobler 2013-05-08 15:26:55 UTC
GhostScript 9.06
Comment 35 sky2blu 2013-05-08 22:54:48 UTC
I tried replacing the libgs dll. It did not work.

It did not work at all.
Comment 36 Jako Grobler 2013-05-08 23:01:18 UTC
(In reply to comment #35)
> I tried replacing the libgs dll. It did not work.
> 
> It did not work at all.

Questions:

1) What operating system?
2) In which folder is your GIMP installed?
3) What version of GIMP?
4) In which folder is your GhostScript installed?
5) What version of GhostScript?
Comment 37 Jako Grobler 2013-05-08 23:29:14 UTC
(In reply to comment #35)
> I tried replacing the libgs dll. It did not work.
> 
> It did not work at all.

To further clarify:

1) Run GIMP. Open the Windows Task Manager. What does the image name appear as:

1.1) gimp-2.8.exe
1.2) gimp-2.8.exe *32

2) Run GhostScript. What does the image name appear as in task manager (with or without the *32)?

3) What is the exact name of the GIMP libgs DLL file?
Comment 38 sky2blu 2013-05-09 02:08:56 UTC
vista 64
programfiles/gimp
2.8.4
programfiles/gs
9.07 64bits

gimp-2.8.exe
gswin64.exe
libgs-8.dll

I'm not sure what I did after that. But I've had to uninstall Gimp and reinstall it to a new folder to get it to work again. Er . . . that is, hopefully, this most recent re-install will work.
Comment 39 Jako Grobler 2013-05-09 02:54:51 UTC
If you restore the backup of the libgs file then it should revert back to its original state. If you need to re-install GIMP then use the control panel to remove it, then after the uninstall browse for the folder and delete it if it is still there. That will give you a clean slate for the re-install.

I will try it with GhostScript 9.07 and see, and post my result in a bit.
Comment 40 Jako Grobler 2013-05-09 03:03:32 UTC
Ok, uninstalled GhostScript 9.06, removed the folder, installed version 9.07, copied and renamed the DLL to GIMP.

GIMP launches and I can import EPS files.

Please be careful when you copy the gsdll64.dll file. In the same folder is also a gsdll64.lib file, do not use the one with the LIB extension!
Comment 41 Jako Grobler 2013-05-09 03:44:01 UTC
Created attachment 243671 [details]
GIMP and GhostScript
Comment 42 Jako Grobler 2013-05-09 03:44:55 UTC
I added an attachment to help determine the files.
Comment 43 sky2blu 2013-05-09 04:42:42 UTC
Thanks. I tried again and, well, I either need to stop downloading patterns and brushes, or I need to get more memory.

So I'm saving up for more memory.

Thanks! Swapping dll files worked fine.
Comment 44 Christian Wenke 2013-05-28 06:09:57 UTC
(In reply to comment #32)
> SOLVED.
> 
> If you have a 64 bit operating system, 64 bit version of GIMP 2.8.2 or higher,
> and GhostScript 64 bit then try this:
> 
> 1) Back up the libgs-8.dll file in the GIMP bin folder.
> 2) Copy the gsdll64.dll file from the GhostScript bin folder to the GIMP
> folder.
> 3) Rename the copied gsdll64.dll file to libgs-8.dll.
> 4) Restart GIMP.
> 
> Enjoy!

this works for me!!

windows7
gimp 2.8.4 64bit
ghostscript 9.04 64bit
Comment 45 delaunay 2013-05-28 09:22:06 UTC
Thank you for this solution, I have not checked if it worked yet. By cons it is a little complicated for a basic Windows user. If you want to popularize GIMP under Windows installation on platforms 32 and 64 bits should be as simple as possible. This is an important prerequisite!
Comment 46 Jernej Simončič 2013-06-24 20:22:00 UTC
This should be fixed in 2.8.6. Please re-open the bug if you still have problems.
Comment 47 Cranston 2013-09-10 13:32:14 UTC
(In reply to comment #46)
> This should be fixed in 2.8.6. Please re-open the bug if you still have
> problems.

Windows 7x64
Gimp 2.8.6
Ghostscript 9.10
System Variable GS_PROG = C:\Program Files\gs\gs9.10\bin\gswin64c.exe

EPS file import fails.  I tried the DLL copy/rename and that didn't work. Is it working for others?

Thanks,
-Brian
Comment 48 Jako Grobler 2013-09-10 16:43:41 UTC
Hi Brian,

It worked out of the box with Gimp 2.8.6 64 bit on my Windows 7 64 bit machine. You should no longer have to copy and rename the DLL.

Try uninstalling Gimp, reboot, then browse to your program files folder and make sure the Gimp folder is actually gone. Do the same for the program files (x86) folder.

Re-install Gimp 2.8.6 64 bit and make sure that you enabled the postscript support checkbox during install. Do not do the manual DLL copy part. Gimp 2.8.6 includes the correct version of the DLL already.

Also, since the DLL is being used in Gimp versions 2.8 and higher the GS_PROG environment variable is no longer used by Gimp.
Comment 49 Cranston 2013-09-11 20:22:55 UTC
That worked..Thanks!
Comment 50 rickmastfan67 2014-08-29 11:33:57 UTC
This seems to be back.  When I installed 2.8.14 x64, I couldn't get EPS files to load again (they had been working fine in 2.8.10).  Then, after I did the workaround posted in Comment 32, (using GS 9.14 x64), EPS files loaded once again in 2.8.14.