GIMP Chat
http://gimpchat.com/

Ghost Diagrams Python Script.
http://gimpchat.com/viewtopic.php?f=9&t=1280
Page 1 of 3

Author:  lylejk [ Sun Mar 06, 2011 11:51 pm ]
Post subject:  Ghost Diagrams Python Script.

I found a cool Python Script from the author of Resynthesizer. The weird thing about this script is that it isn't a GIMP Python plugin but heavily requires GTK and other GIMP components and the only way I could get it to work is to place it in GIMP's Plugin directory and then it will only run when launching GIMP (GIMP won't finish launching until you finish using the filter; lol). I can't figure out how to run it using the Python console unfortunately, but maybe you gurus can. It can create pretty cool patterns imo. I put it in the GIMP Scripts and Plugins thread since it does require GIMP to work (but again, I could only get it to work when launching GIMP; how weird is that). I made it a seamless texture by using Mehdi's Kaleidoscope filter. :)

Image

Click here for this image's Deviant. :)

Author:  Rod [ Mon Mar 07, 2011 8:31 am ]
Post subject:  Re: Ghost Diagrams Python Script.

I like how it gives you the svg information. :)
Pretty cool.

Thanks for sharing it Lyle.

Author:  PhotoComix [ Mon Mar 07, 2011 8:47 am ]
Post subject:  Re: Ghost Diagrams Python Script.

nice you always digg cool apps thank to sharing
i see here a online version http://www.logarithmic.net/ghost.xhtml
seems more handy then run the script at loading time, maybe has some limits that i didn't notice ?

Author:  PhotoMaster [ Mon Mar 07, 2011 9:19 am ]
Post subject:  Re: Ghost Diagrams Python Script.

This is interesting! I like the effect! I will try and find a way to have it run like any other python script! I haven't seen how to save SVG files, but I will play with that too!

Author:  PhotoMaster [ Mon Mar 07, 2011 9:22 am ]
Post subject:  Re: Ghost Diagrams Python Script.

The link for the online version doesn't work for me.

Author:  PhotoComix [ Mon Mar 07, 2011 9:26 am ]
Post subject:  Re: Ghost Diagrams Python Script.

check again! http://www.logarithmic.net/ghost.xhtml

Maybe you have some security thingy blocking execution of script form the browser ?
Or the page didn't load ?

Author:  PhotoMaster [ Mon Mar 07, 2011 9:33 am ]
Post subject:  Re: Ghost Diagrams Python Script.

When I click on it, it tries to download a file? I'll try updating my browser.

Author:  lylejk [ Mon Mar 07, 2011 9:37 am ]
Post subject:  Re: Ghost Diagrams Python Script.

Yeah; I had the same issue with XP; just went ahead and downloaded the file and then opened it up in Win7 (IE supports XHTML). I do like the ability to export SVG with the web based version, but it doesn't give the center lines like the Python version (which I sort of like for some reason). :)

Author:  Rod [ Mon Mar 07, 2011 10:16 am ]
Post subject:  Re: Ghost Diagrams Python Script.

If you place the python file in a separate folder with a copy of all the dll files in Gimps bin folder you can run Ghost Diagrams as a stand alone. :)

Dunno how to get it to run in Gimps menus without changing a bunch of the script itself.
Example
Image

Author:  Rod [ Mon Mar 07, 2011 10:20 am ]
Post subject:  Re: Ghost Diagrams Python Script.

I would also try and remove a dll at a time to see exactly which ones are actually needed to run it.
Create a folder named Ghost Diagrams on your desktop
Copy all the Gimp/bin folders dll files to it -copy the python file ghost diagrams to it.
Double click the python file the program will run
Close the program and move one of the dll files to the desktop - reopen the python file and see if it works - if it does delete the exra dll file you removed.
Keep doing this until you find all the required dll files it needs to run.
Now just move the entire folder to your programs directory and create a shortcut to the python file.

Author:  Rod [ Mon Mar 07, 2011 10:40 am ]
Post subject:  Re: Ghost Diagrams Python Script.

Okay these are the required dll files to run the program - these have to be in the same folder as Ghost-Diagrams python file.

Image

Author:  paynekj [ Mon Mar 07, 2011 10:49 am ]
Post subject:  Re: Ghost Diagrams Python Script.

I had a very quick go at getting it to launch from Gimp, although you're probably better off using it stand-alone. I've attached a zipped version (again, why can't we attach python scripts ?)

It needs someone with actual knowledge to tell me how to get it to work without popping up an unnecessary prompt for filename and layer. Conceivably it might be possible to draw directly onto a gimp layer, or at least grab the image from the stand-alone and put it back into Gimp.

Attachments:
ghost-diagrams-0.8-gimp.zip [10.22 KiB]
Downloaded 151 times

Author:  Rod [ Mon Mar 07, 2011 10:52 am ]
Post subject:  Re: Ghost Diagrams Python Script.

To get the SVG info you need to save the online version as a page on your desktop - then just run it in your browser


Image

my website server link - full program
http://simply-signage.com/Ghost/GHOST.xhtml

Thanks for the Gimp version

Author:  Rod [ Mon Mar 07, 2011 11:49 am ]
Post subject:  Re: Ghost Diagrams Python Script.

The filter sets itself as "Contributed" in the image window menu.I already have one "contributed" small c.So if you have this as i do change the name to a small c and the filter will open with your same "contributed" menu listing.
Other wise the filter will be created in a separate menu named the same just with a capital C. :)
Change this
"<Image>/Contributed/Ghost",
To this instead
"<Image>/contributed/Ghost",

Unfortunately i do not believe you can open an image into Ghost Diagrams dialog.
You can save from it but i do not see anywhere to import an existing image. :)
You can call the program as long as you have 1 layer created without the program throwing the error.
I wonder if it's possible to save the image as a temp file and import it back into Gimp via the python module?

Author:  MareroQ [ Mon Mar 07, 2011 12:17 pm ]
Post subject:  Re: Ghost Diagrams Python Script.

Very interesting - thanks !
Lyle - only a real artist may to come up with a way to start - I admire the ingenuity.
I tried first by Your rule, but now - I just click and it works (without the Gimp nor an additional folder with the dll ) - i guess I have more luck (XP Home) - unfortunately, I do not know why.
It is unfortunate that no version Javascript/SVG for download.

Author:  ofnuts [ Mon Mar 07, 2011 12:20 pm ]
Post subject:  Re: Ghost Diagrams Python Script.

Actually it's not a Gimp plug-in... it is started by Gimp if you put it in the plug-in directory because Gimp will blindly run anything executable it finds there (this is used to let the pug-ins register to Gimp). On Linux it runs as an independent application. I suspect that its only relationship with Gimp on Windows is that it also needs GTK support, that is provided free of charge if run in the Gimp environment.

Author:  MareroQ [ Mon Mar 07, 2011 12:38 pm ]
Post subject:  Re: Ghost Diagrams Python Script.

You're right! It works for me by c: \ Program Files \ Gtk +

Author:  lylejk [ Mon Mar 07, 2011 12:39 pm ]
Post subject:  Re: Ghost Diagrams Python Script.

Cool info Rod; still, don't really plan on running the Python that often, so when I do, I'll just copy it in my GIMP Plugins folder and launch GIMP. lol

The XHTML file can be saved and run locally so long as your browser supports XHTML. Win7's IE 9 does. I guess so would Firefox. Still, I like the Python result with the inside blacklines better for whatever reason. :)

Author:  Rod [ Mon Mar 07, 2011 1:17 pm ]
Post subject:  Re: Ghost Diagrams Python Script.

I just threw it in it's own folder with those needed dll files, placed it in my portable apps directory, and created a shortcut to it on RocketDock.That way i can create a cool looking icon for it in Inkscape. :)

I also found if you open it via Gimp -you can then open FastStone Capture - capture a rectangle area,when the image opens in FastStones capture window - copy it and paste it in Gimps image window.

Author:  mahvin [ Mon Mar 07, 2011 1:24 pm ]
Post subject:  Re: Ghost Diagrams Python Script.

Word to the wise:

Instead of saving the javascript version as a desktop link (that may one day disappear from the internet) save it as a file. But make sure you save the "entire content" of the xhtml (do not save it as a link). And do not save the file just by clicking "save file as", as sometimes it fails to associate the web content according to the actual source information in the xhtml, and running it sometimes will fail. Instead, (using Firefox: recommended) open the source page, select Edit - All, then save the copy of the source to your folder (you can keep the same name for it, if you want). And now you will have a standalone javascript version to use and not have to worry about the website going down or going away.

Page 1 of 3 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/