Where exactly does Inkscape search for Gimp?

Post questions on how to use or achieve an effect in Inkscape.
User avatar
kstingel
Posts: 62
Joined: Fri Feb 12, 2016 3:27 pm

Where exactly does Inkscape search for Gimp?

Postby kstingel » Sun Mar 13, 2016 6:59 pm

Within my extension errors log I have the following block:

Code: Select all

Extension "GIMP XCF" failed to load because a dependency was not met.
Dependency:
  type: executable
  location: path
  string: gimp


Within my PATH I have the followong snippet:

Code: Select all

C:\Program Files\GIMP 2\bin\gimp-2.8.exe


Do I need to specifically create a GIMP key and add the path to Gimp there?

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Where exactly does Inkscape search for Gimp?

Postby Moini » Mon Mar 14, 2016 12:21 am

Could it be it's looking for 'gimp' but you have gimp-2.8 ?

You could modify the extension and try this out. You could also just enter the full path into the extension's python code.
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

User avatar
kstingel
Posts: 62
Joined: Fri Feb 12, 2016 3:27 pm

Re: Where exactly does Inkscape search for Gimp?

Postby kstingel » Tue Mar 22, 2016 11:17 pm

Moini wrote:Could it be it's looking for 'gimp' but you have gimp-2.8 ?

You could modify the extension and try this out. You could also just enter the full path into the extension's python code.


I haven't yet tried to modify an extension, I looked at the py file but I couldn't see where to add the path to gimp.

Would I need to modify the .py file or the .inx file?

User avatar
kstingel
Posts: 62
Joined: Fri Feb 12, 2016 3:27 pm

Re: Where exactly does Inkscape search for Gimp?

Postby kstingel » Tue Mar 22, 2016 11:18 pm

Alternately, am I getting the Error because I'm running on Windows and the Gimp loader is no longer included?

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Where exactly does Inkscape search for Gimp?

Postby Moini » Wed Mar 23, 2016 12:06 am

It's in the .py file, line 236, starting with 'command = gimp blahblah...'

Paste
gimp -h

into a shell, to see if it works at all. What it does is it should print out the help.
Try modifying the 'gimp' part until it works, and then replace the 'gimp' part in the extension.
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

User avatar
kstingel
Posts: 62
Joined: Fri Feb 12, 2016 3:27 pm

Re: Where exactly does Inkscape search for Gimp?

Postby kstingel » Sun Mar 27, 2016 10:38 pm

@Moini:

gimp -h didn't work, but %gimp% --help pops up the Gimp help commands in a new cmd window

after updating line 236 to "command = '%gimp% -i blahblah..." I'm still seeing the GIMP XCF error in my extension-errors.log

is this because the original gimp_xcf.py file is still in the <installpath>/share/extensions folder?

User avatar
kstingel
Posts: 62
Joined: Fri Feb 12, 2016 3:27 pm

Re: Where exactly does Inkscape search for Gimp?

Postby kstingel » Sun Mar 27, 2016 10:45 pm

I have also removed and reinstalled GIMP to a new path:

Code: Select all

C:\GIMP\bin\gimp-2.8.exe

in an effort to exclude an problem caused by the space in "Program Files"

within my (systemwide) Environment Options I have a specific "gimp" entry, directing to the new path
... GIMP is no longer included in either the system Path, or my user Path variables (with it's own entry, I thought a Path entry was unnecessary)

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Where exactly does Inkscape search for Gimp?

Postby Moini » Mon Mar 28, 2016 4:42 am

@kstingel: I'd really like to be able to help you, but on Windows, I'm totally at a loss as the only suggestion that came to mind didn't work - I'm a long-time Linux user... :/
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

User avatar
kstingel
Posts: 62
Joined: Fri Feb 12, 2016 3:27 pm

Re: Where exactly does Inkscape search for Gimp?

Postby kstingel » Mon Mar 28, 2016 5:06 am

Moini: I'd love to go back to Linux, but all my Tools are Windows based :(
some of them have Linux ports, but the ports don't have full functionality yet

Since my Live server is CentOS ... would it be worthwhile firing up the (Ubuntu) laptop and just doing my Inkscape work there?

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Where exactly does Inkscape search for Gimp?

Postby Moini » Mon Mar 28, 2016 5:23 am

I always think Linux is worthwhile :) - and the amount of crashes and bugs in Inkscape is significantly lower on Linux, as far as I can tell.
But the question if this makes sense really depends on the computing power of your laptop. If it's a lot slower than your Windows computer, it might not be a lot of fun - but this remains to be tried out, and depends on your drawings, too. I'd say just try it, and see if it goes well ;)

Remember to use the ppa (https://launchpad.net/~inkscape.dev/+ar ... ntu/stable) to get 0.91 if you try. Else you'll only get 0.48.4 with Ubuntu LTS (14.04).
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

User avatar
kstingel
Posts: 62
Joined: Fri Feb 12, 2016 3:27 pm

Re: Where exactly does Inkscape search for Gimp?

Postby kstingel » Mon Mar 28, 2016 6:15 pm

Windows Comp is much better speed/memory, I might have to plod on with current setup for a bit until I can have laptop serviced and upgraded

User avatar
kstingel
Posts: 62
Joined: Fri Feb 12, 2016 3:27 pm

Re: Where exactly does Inkscape search for Gimp?

Postby kstingel » Mon Mar 28, 2016 6:17 pm

The Gimp functionality is not actually something I will miss, as I have never seen it work to know what it does :)

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Where exactly does Inkscape search for Gimp?

Postby brynn » Mon Mar 28, 2016 7:15 pm

I have not read through this entire thread. But I've always had the impression that functionality does not work for Windows. I could be wrong though.

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Where exactly does Inkscape search for Gimp?

Postby Moini » Tue Mar 29, 2016 3:15 am

kstingel wrote:The Gimp functionality is not actually something I will miss, as I have never seen it work to know what it does :)


:lol: It saves your drawing as an xcf for gimp to edit. Never used it, but when I looked through the extension code, I got the impression that it will create a gimp document that has a single layer for each layer in your document, filled with a raster image of that layer.

Tried it. It does exactly that, but the background is somehow white for each layer, so they don't blend correctly... ?!? Very strange...
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

User avatar
kstingel
Posts: 62
Joined: Fri Feb 12, 2016 3:27 pm

Re: Where exactly does Inkscape search for Gimp?

Postby kstingel » Tue Mar 29, 2016 8:24 pm

@Moini:
I'm guessing the page background is because the default in Inkscape seems to be a white background. If you tweak the XML and make the page background "none", will it save to XCF as transparent?

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Where exactly does Inkscape search for Gimp?

Postby Moini » Wed Mar 30, 2016 2:00 am

No, also doesn't work with #ffffff00 or rgba(255, 255, 255, 0)
BUT: I now noticed there's an option that you can uncheck, 'save background'. Being able to read must be an advantage... :/
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)


Return to “Help with using Inkscape”