GNOME Bugzilla – Bug 689207
Opening EPS files fails in GIMP 2.8.2 on 64 bit Windows platforms
Last modified: 2016-10-03 14:24:40 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
Created attachment 230071 [details] Screenshot Error that appears after resolution import dialogue
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.
Kevin, can you attach the file please?
And please set OS if you could reproduce it on non-windows.
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.
(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.
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.
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
*** Bug 689925 has been marked as a duplicate of this bug. ***
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.
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.
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?
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..
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.
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.
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.
So we have to assume that either the file-ps plug-in or libgs do not work correctly on 64 bit Windows platforms.
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)
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
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.
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, Could you please explain more what and how I can check?
(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.
(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.
(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.
GS_PROG is not supposed to have any effect anymore, so removing it won't change anything, either.
Hope that helps Com a versão gs905w32 deu certo http://downloads.ghostscript.com/public/gs905w32.exe Tenho um windows 8 64 Bits
So, has anyone tried to replace the libgs DLL and checked if this fixes anything? (see comment #21)?
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)
(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!
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.
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!
Which version of ghostscript was that?
GhostScript 9.06
I tried replacing the libgs dll. It did not work. It did not work at all.
(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?
(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?
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.
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.
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!
Created attachment 243671 [details] GIMP and GhostScript
I added an attachment to help determine the files.
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.
(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
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!
This should be fixed in 2.8.6. Please re-open the bug if you still have problems.
(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
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.
That worked..Thanks!
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.