Re: [Gimp-user] python-fu: open image as layer

2011-08-09 Thread Jerry Baker
Try gimp-file-load-layer or gimp-file-load-layers... that may be it...

-Original Message-
From: Serghei MIHAI 
Reply-to: Serghei MIHAI 
To: gimp-user@lists.XCF.Berkeley.EDU
Subject: [Gimp-user] python-fu: open image as layer
Date: Wed, 10 Aug 2011 01:08:23 +0200


Hello everyone,

I try to develop a little python script for personal usage and I need to open
images as layers. I've googled and I found this message in the archive:
http://lists.xcf.berkeley.edu/lists/gimp-user/2008-April/012295.html.

But I don't find the pdb.gimp-file-open-layer function in my python console.

The function was renamed or moved to another module?

Thanks in advance,

---
Serghei MIHAI
Email  : serghei.mi...@devlibre.net
Jabber : sergiu.mi...@devlibre.net
GPG key: 4096R/BF2FA1AF
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] Python-fu installation fails

2011-07-05 Thread kevin gilbert


On Wed July 6 2011 00:42:09 charlessmall18 opined:
> Sir, you are a scholar and a gentleman and all of the above worked like a
> charm and GIMP now starts just fine. However, I had all kinds of Python
> 2.6 stuff lurking on my PC. Here is how a hard-bitten (because I have 
been
> bitten hard many times by Windows) Windows victim...er...I mean Windows
> user cleans up his or her PC:
> 
> How to really un-install software.

1) Install Linux! ;)

Sorry, couldn't help myself. :blush:
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] python script for rectangle selection

2010-01-02 Thread David Hodson
On Sat, 2010-01-02 at 18:50 +0100, Fab wrote:
> Hi,
> 
> I am new to gimp's scripting and would like to automate the rectangle
> selection tool by defining the position and size using a script.
> Afterwards, I would like to extract the selection, 'paste as new image' and
> save the image as a png file without compression.

You should be able to do this using David's Batch Processor. It will let
you define a fixed region to crop from an image and save as png, then
apply that to multiple images. No scripting necessary. Google DBP.

-- David


___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] python script for rectangle selection

2010-01-02 Thread Chris Mohler
On Sat, Jan 2, 2010 at 1:44 PM, Fab  wrote:
> Hi to both,
>
> thanks for your help and thanks for the script! I tried the attached python
> script
> by using execfile("script.py") from the python-fu console. Unfortunately gimp
> (2.6.7 on ubuntu) crashed. Do you have a hint, what I am doing wrong!?

Yes - that was originally written as a plug-in (place in
~/.gimp-2.x/plug-ins, chmod +x, it registers as 'File->Export Area').

I think this code should work in the console - either via execfile or
typing/pasting it in.

Chris

import os
from gimpfu import *

# size and position of rectangle
areaWidth = 200
areaHeight = 200
areaPosX = 20
areaPosY = 20

# path to save PNG
path = os.path.join(os.path.expanduser('~'),'Desktop')

# operate on first image
img = gimp.image_list()[0]
filename = img.name + "-sm.png"
fullpath = os.path.join(path, filename);
tmp = img.duplicate()
tmp.flatten()
tmp.crop(areaWidth, areaHeight, areaPosX, areaPosY)
pdb.file_png_save(tmp, tmp.layers[0], fullpath, filename, 0, 9, 1, 1, 1, 1, 1)
#pdb.gimp_image_delete(tmp)



___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] python script for rectangle selection

2010-01-02 Thread Chris Mohler
On Sat, Jan 2, 2010 at 11:50 AM, Fab  wrote:
> I am new to gimp's scripting and would like to automate the rectangle
> selection tool by defining the position and size using a script.
> Afterwards, I would like to extract the selection, 'paste as new image' and
> save the image as a png file without compression.
>
> It would be nice, if you can give me some hints, how to achieve this. Maybe,
> something similar exists already!?

Hi,

I've attached some code here - it's from a similar plug-in that I
modified to (almost) do what you want.  It will need some work for it
to be useful, but it should be pretty easy to follow and also modify
to suit your needs.  I've only given it the barest amount of testing
with gimp 2.6.6 on linux, but it should be cross-platform in theory
(as long as Python+GIMP is correctly installed).

Note that the gimp.file_png_save() call is most likely using
compression - check the procedure browser for the right parameters.

Also, I chose to duplicate/crop/save/destroy rather than
select/copy/paste new/save/destroy - I just found that method simpler.

Hope this helps and good luck!
Chris
#!/usr/bin/env python
# Author: Chris Mohler
# Copyright 2009 Chris Mohler
# License: GPL v3
# Version 0.1
# GIMP plugin to export portion of image as PNG

from gimpfu import *
import os

gettext.install("gimp20-python", gimp.locale_directory, unicode=True)

# size and position of rectangle
areaWidth = 200
areaHeight = 200
areaPosX = 20
areaPosY = 20


def export_rect(img, drw, path):
filename = img.name + "-sm.png"
fullpath = os.path.join(path, filename);
tmp = img.duplicate()
tmp.flatten()
pdb.gimp_image_crop(tmp, areaWidth, areaHeight, areaPosX, areaPosY)
pdb.file_png_save(tmp, tmp.layers[0], fullpath, filename, 0, 9, 1, 1, 1, 1, 1)
pdb.gimp_image_delete(tmp)


register(
proc_name=("python-fu-export-rect"),
blurb=("Export Rectangle as PNG"),
help=("Export Rectangle as PNG."),
author=("Chris Mohler"),
copyright=("Chris Mohler"),
date=("2009"),
label=("Export Area"),
imagetypes=("*"),
params=[
(PF_IMAGE, "img", "Image", None),
(PF_DRAWABLE, "drw", "Drawable", None),
(PF_DIRNAME, "path", "Save PNG here", os.getcwd()),
   ],
results=[],
function=(export_rect), 
menu=("/File"), 
domain=("gimp20-python", gimp.locale_directory)
)

main()
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] python script for rectangle selection

2010-01-02 Thread Norman Silverstone

> I am new to gimp's scripting and would like to automate the rectangle
> selection tool by defining the position and size using a script.
> Afterwards, I would like to extract the selection, 'paste as new image' and
> save the image as a png file without compression.
> 
> It would be nice, if you can give me some hints, how to achieve this. Maybe,
> something similar exists already!?

I am sorry that I cannot produce a script but why not put the question
to  http://forum.meetthegimp.org/ there are some very knowledgeable and
helpful script writers there.

Norman

___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] python plug-ins not getting loaded

2009-04-03 Thread Owen

> Hello,
> I'm trying to use a python plugin I downloaded from the plugin site.
> I copied it to $HOME/.gimp-2.6/plug-ins; restarted gimp. NO JOY




Is it executable?   (-rwxr-xr-x )

-- 



Owen

___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] python plug-ins not getting loaded

2009-04-03 Thread norman
On Fri, 2009-04-03 at 12:53 -0700, Steven Howe wrote:
> Hello,
> I'm trying to use a python plugin I downloaded from the plugin site.
> I copied it to $HOME/.gimp-2.6/plug-ins; restarted gimp. NO JOY
> 
> The plug-in browser does not show the script available. Looked over the 
> pluginrc.
> Register entry not there either.
> 
> Nor can I find the plug-in in the procedure browser.
> 
> Then perhaps just a clarification question. What's the difference between
> a procedure and a plug-in?
> 
> I've noted that some (if not all) python scripts, in the 
> /usr/lib/gimp/2.0/plug-ins
> can be found under procedure browser not the plug-in browser.

Right click on the plug-in select properties, permissions  and make sure
that the box Execute is ticked.

Norman

___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] python plug-ins not getting loaded

2009-04-03 Thread Chris Mohler
On Fri, Apr 3, 2009 at 2:53 PM, Steven Howe  wrote:
> Hello,
> I'm trying to use a python plugin I downloaded from the plugin site.
> I copied it to $HOME/.gimp-2.6/plug-ins; restarted gimp. NO JOY

Is the plug-in executable?

Chris
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] Python with Gimp 2.6

2009-03-29 Thread Alec Burgess

Jernej Simon i (jernej.listso...@ena.si) wrote (in part)  (on
2009-03-29 at 17:56):

 On Sun, 29 Mar 2009 22:50:01 +0200 (CEST), Carusoswi wrote:

 > > I thought I had previously installed that plugin, and I just now
 unzipped the
 > > downloaded file and placed the contents, plubishr and a folder
 named libpub
 > > that contains six more python files and three folders.  Pasting
 that folder
 > > doesn't feel right to me, but, there must be a reason the zip
 file is packaged
 > > the way it is (six files, then more files and folders inside the
 libpub
 > > folder.

 You should unzip the archive either to
 C:\Program Files\GIMP-2.0\lib\gimp\2.0\plug-ins, or to the folder
 .gimp-2.6\plug-ins in your user profile folder (on XP and 2000 that is
 C:\Documents and Settings\, on Vista it's
 c:\Users\).
 The "Publish to web" item should then appear in the File menu.

 Also, don't forget to reinstall GIMP after installing Python, because
 the
 GIMP Python components aren't installed unless Python is present on
 the
 system.


This is a related GIMP 2.6.6 Python problem ... (using WinXP SP3)
I had GIMP 2.6.6 installed and working with Python 2.5. I ran into a 
problem with a Python script by Chris Mohler
posted here a couple of days ago. Count tiles for a mosaic - 
http://registry.gimp.org/node/15080


the command pdb.gimp_message() eg. pdb.gimp_message(u"foo") shows its 
output in either the separate GIMP-output window if GIMP started with 
parameter -c or the internal Error console instead of in the expected 
dialog box.


At Chris' suggestion I checked version of Python I had. Mine was Python 
2.5 and checking http://gimp-win.sourceforge.net/faq.html#py found that 
GIMP 2.6 is now available as are new versions of the three sub-packages 
PyCairo , 
PyGObject 
 and 
PyGTK . These 
three have new versions for Python 2.6 released Jan 12, 2009


So I installed Python 2.6.6, then the three sub-packages. At first Gimp 
python-console was working as before (though pdb.gimp_message() 
continued not to display the expected dialog box). Then I noticed / 
remembered that GIMP has to be reinstalled after installing the Python 
"stuff" so I did that.


Now I'm getting error message in Error Console as soon as I try to open 
python console  Filters - Python-Fu - console:

===  GIMP Error
Plug-in crashed: "python-console.py"
(D:\Program 
Files\GIMP-2.0\GIMP2.6.4\lib\gimp\2.0\plug-ins\python-console.py)


The dying plug-in may have messed up GIMP's internal state. You may want 
to save your images and restart GIMP to be on the safe side.


Note I tested with previously installed GIMP 2.6.5 & 2.7.0 - Python-Fu 
still works with them (presumably still using Python 2.5) install.


Note: in an attempt to correct this, I reinstalled GIMP 2.6.6 again but 
unchecked the python support option. It warned that python files would 
not be removed, requested reboot and after reboot GIMP 2.6.6 still shows 
Filters - Python-Fu entry. Selecting it gives error in console above. 
Re-installing GIMP 2.6.6 and turning Python option on again does not 
request reboot and attempt to run Python-Fu console still gives above error.


I haven't (yet) tried uninstalling Python 2.6

PS: just before sending I noticed that the error message above is 
referring to GIMP2.6.4 not GIMP2.6.6 ?

I've got four installs of GIMP 2.6 in:
D:\Program Files\GIMP-2.0\GIMP-2.7
D:\Program Files\GIMP-2.0\GIMP2.6.3
D:\Program Files\GIMP-2.0\GIMP2.6.4
D:\Program Files\GIMP-2.0\GIMP2.6.5
D:\Program Files\GIMP-2.0\GIMP2.6.6

I checked Help-About in all four, each shows the expected version and 
all except GIMP2.6.6 show in the Python-Fu console the correct GIMP 
version and Python 2.5.2( except for GIMP 2.6.6 which gives the error 
message instead of displaying the Python Console): eg:


GIMP 2.6.5 Python Console
Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]


Any suggestions as to how GIMP 2.6.6 is getting to the wrong 
python-console.py?




--
Regards ... Alec   (bura...@gmail & WinLiveMess - alec.m.burg...@skype)


___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] Python with Gimp 2.6

2009-03-29 Thread Jernej Simončič
On Sun, 29 Mar 2009 22:50:01 +0200 (CEST), Carusoswi wrote:

> I thought I had previously installed that plugin, and I just now unzipped the
> downloaded file and placed the contents, plubishr and a folder named libpub
> that contains six more python files and three folders.  Pasting that folder
> doesn't feel right to me, but, there must be a reason the zip file is packaged
> the way it is (six files, then more files and folders inside the libpub
> folder.

You should unzip the archive either to
C:\Program Files\GIMP-2.0\lib\gimp\2.0\plug-ins, or to the folder
.gimp-2.6\plug-ins in your user profile folder (on XP and 2000 that is
C:\Documents and Settings\, on Vista it's c:\Users\).
The "Publish to web" item should then appear in the File menu.

Also, don't forget to reinstall GIMP after installing Python, because the
GIMP Python components aren't installed unless Python is present on the
system.

-- 
< Jernej Simončič >< http://deepthought.ena.si/ >
< Contact address: >< jernej simoncic at isg si >

___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] Python with Gimp 2.6

2009-03-29 Thread Jernej Simončič
On Sun, 29 Mar 2009 15:54:24 +0200 (CEST), Carusoswi wrote:

> I am obviously on the wrong track here, and, not being a programmer have lost
> my way.

The instructions on how to get Python to work are in the FAQ:


-- 
< Jernej Simončič >< http://deepthought.ena.si/ >
< Contact address: >< jernej simoncic at isg si >

___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] Python with Gimp 2.6

2009-03-29 Thread Joao S. O. Bueno
On Sunday 29 March 2009, Carusoswi wrote:
> I have been browsing various websites and am intrigued by some of the
> Python scripts I see offered.  However, to date, I don't seem to be able to
> get Python or any scripts working on my system.  Right now, I'm running
> Gimp 2.6.6 on Windows XP.  I am particularly interested in getting the
> Publish to Web script working.
>
> In reviewing some of the instructions on installing Publish to Web, I see
> that Python has to be installed on my system, so, I downloaded it, ran the
> installer, and Python shows up in my Windows start-->all programs menu, but
> I don't see a Python directory in my Gimp directory tree, and, of course,
> py scripts are not being recognized by Gimp.
>
> I am obviously on the wrong track here, and, not being a programmer have
> lost my way.

Hi,
for little official as it seens to be
http://photocomix-resources.deviantart.com/art/Gimp-Python-support-easier-74889017
is the easiest resource to get gimp + python scritps running on windows.

There is a shrotcoming both in GIMP documentation and on windows propper 
support for an enviroment where software projects colaborate with one another 
instead of compete. Sorry for that.  

js
-><-

>
> Advice would be much appreciated.

> Thanks.
>
> Caruso


___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] python support

2008-10-16 Thread Alchemie foto\grafiche
PS
Please Michael you know well Windows since you compiled so much plugin for Win.

So...If you found something wrong in the pack 
http://www.deviantart.com/download/74889017/Gimp_Python_support_easier_by_photocomix_resources.zip
 please let me now, same if you have any suggestion

I can only state that seems working fine with gimp 2.6
(and that also thank to the tips you give time ago on the gimp irc)


  Scopri il blog di Yahoo! Mail:
Trucchi, novità e scrivi la tua opinione.
http://www.ymailblogit.com/blog
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] python support (

2008-10-16 Thread Michael Schumacher
> Von: "Alchemie fotografiche" <[EMAIL PROTECTED]>

> i just check and all packages have newer version but then some newer
> versions are incompatible.
> 
> as example is required python 2.5 with last python 2.6 Pyobject refuse to
> install.

It's not really surprising that a package for Python 2.6 can't be installed to 
Python 2.5.


Michael
-- 
Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: 
http://www.gmx.net/de/go/multimessenger
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] python support (

2008-10-15 Thread Alchemie foto\grafiche
> I think all three of the packages have later versions since
> you created 
> the ZIP so I got them. With Gimp closed I installed the two
> I was 
> missing (pycairo-1.4.12-1, pygobject-2.14.1-1) and
> restarted GIMP. 
> Python-Fu showed up this time :-)
> 
> No reboots were necessary.

i just check and all packages have newer version but then some newer versions 
are incompatible.

as example is required python 2.5 with last python 2.6 Pyobject refuse to 
install.

so at least for python is required a not updated version

 i am busy to install on my pc and see what may be updated maybe only the 3 py 
libraries

about the need to reboot i stressed the point because apparently solved several 
cases of failed installation

about reboot i am not sure if the case to remove that advice

2 reboots may be a nuisance but not as be puzzled to failed install, unistall 
everything,clean up unistall leftover , download again checking  the 
checksum,reinstall.
..and fail again ..again same  no Python option to select in Gimp custom 
install dialog

then even if may be not strictly needed that added reboot steps solved 3 on 
total of 3 of this cases, after everything else failed to solve.




  Scopri il blog di Yahoo! Mail:
Trucchi, novità e scrivi la tua opinione.
http://www.ymailblogit.com/blog
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] python support

2008-10-14 Thread Alec Burgess


Alchemie foto\grafiche ([EMAIL PROTECTED]) wrote (in part)  (on
2008-10-14 at 11:48):

 > I'm running gimp 2.6.1 on windows xp, I have a couple
 > > of python plugins
 > > in my ...\.gimp-2.6\plug-ins directory, yet they
 > > don't appear in the menu. Do I
 > > need to install some gimp python support, or what could the
 > > reason be?
 > > Thanks.

 Reason is that python support in Windows version of Gimp is disabled
 by default.
 Is possible enable it, for that is needed Unistall gimp, install
 Python libraries (not only Python ) and then reinstall Gimp with the
 "custom" option, and in the following dialog check the "python"
 checkbox.

 But do not worry to make it easier i grouped all that is needed
 including Python in a single pack, with a almost idiot proof " how to
 install"


 Pack is here


http://photocomix-resources.deviantart.com/art/Gimp-Python-support-easier-74889017

 i done for Gimp 2.4  but i believe is still updated,anyway for me
 still works with last gimp 2.6.1
 again how to is included, you can't miss that text file is very
 clearly labeled

 even more information on installing/running python on gimp windows 
 are here

 http://www.gimptalk.com/forum/python-and-gimp-t25587.html


@fotocomix - I found the above reference a couple of days ago (I think 
by googling [python gimp plugin]. Just thought I'd comment on the need 
for reboots you stressed in your "IDIOTS NEVER READ THIS". Not sure if 
anything has changed in GIMP between 2.4 and 2.6.1. I already had 
Python25 and pygtk-2.12.1-2 but not the other two requirements.


Filters>Python-Fu>Console was NOT showing up.

I think all three of the packages have later versions since you created 
the ZIP so I got them. With Gimp closed I installed the two I was 
missing (pycairo-1.4.12-1, pygobject-2.14.1-1) and restarted GIMP. 
Python-Fu showed up this time :-)


No reboots were necessary.

--
Regards ... Alec   ([EMAIL PROTECTED] & WinLiveMess - [EMAIL PROTECTED])


___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] python support

2008-10-14 Thread Adonj Adonj

Thanks, that helped a lot!> Date: Tue, 14 Oct 2008 15:48:28 +> From: [EMAIL 
PROTECTED]> To: gimp-user@lists.XCF.Berkeley.EDU> Subject: Re: [Gimp-user] 
python support> > > > I'm running gimp 2.6.1 on windows xp, I have a couple> > 
of python plugins > > in my ...\.gimp-2.6\plug-ins directory, yet they> > don't 
appear in the menu. Do I> > need to install some gimp python support, or what 
could the> > reason be?> > Thanks.> > Reason is that python support in Windows 
version of Gimp is disabled by default.> Is possible enable it, for that is 
needed Unistall gimp, install Python libraries (not only Python ) and then 
reinstall Gimp with the "custom" option, and in the following dialog check the 
"python" checkbox.> > But do not worry to make it easier i grouped all that is 
needed including Python in a single pack, with a almost idiot proof " how to 
install"> > > Pack is here 
http://photocomix-resources.deviantart.com/art/Gimp-Python-support-easier-74889017>
 i done for Gimp 2.4 but i believe is still updated,anyway for me still works 
with last gimp 2.6.1> again how to is included, you can't miss that text file 
is very clearly labeled> > even more information on installing/running python 
on gimp windows are here> 
http://www.gimptalk.com/forum/python-and-gimp-t25587.html> > > > Scopri il blog 
di Yahoo! Mail:> Trucchi, novità e scrivi la tua opinione.> 
http://www.ymailblogit.com/blog> 
___> Gimp-user mailing list> 
Gimp-user@lists.XCF.Berkeley.EDU> 
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
_

___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] python support

2008-10-14 Thread Alchemie foto\grafiche

> I'm running gimp 2.6.1 on windows xp, I have a couple
> of python plugins 
> in my ...\.gimp-2.6\plug-ins directory, yet they
> don't appear in the menu. Do I
> need to install some gimp python support, or what could the
> reason be?
> Thanks.

Reason is that python support in Windows version of Gimp is disabled by default.
Is possible enable it, for that is needed Unistall gimp, install Python 
libraries (not only Python ) and then reinstall Gimp with the "custom" option, 
and in the following dialog check the "python" checkbox.

But do not worry to make it easier i grouped all that is needed including 
Python in a single pack, with a almost idiot proof " how to install"


Pack is here 
http://photocomix-resources.deviantart.com/art/Gimp-Python-support-easier-74889017
i done for Gimp 2.4  but i believe is still updated,anyway for me still works 
with last gimp 2.6.1
again how to is included, you can't miss that text file is very clearly labeled

even more information on installing/running python on gimp windows  are here
http://www.gimptalk.com/forum/python-and-gimp-t25587.html



  Scopri il blog di Yahoo! Mail:
Trucchi, novità e scrivi la tua opinione.
http://www.ymailblogit.com/blog
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] Python error while loading gimp

2008-05-16 Thread Sven Neumann
Hi,

On Fri, 2008-05-16 at 05:32 -0700, D.Jones (aka) Capnhud wrote:
> I receive the following error when I load gimp 2.4.5 with python installed.
> 
> pythonw.exe
> The procedure entry point g_assertion_message could not be located in the 
> dyanamic link library
> libglib-2.0.0-0.dll

Your copy of gtk+ was compiled against a newer version of glib than what
you have installed on your system.


Sven


___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] python-fu script

2008-05-11 Thread Sven Neumann
Hi,

On Sat, 2008-05-10 at 18:57 -0300, Joao S. O. Bueno wrote:

> When caling PDB stuff from a python plug-in, the run-mode
> parameter is always omited and assumed to be "non-interactive"

That is a very bad design decision. How are you supposed to call a PDB
function interactively then?


Sven


___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] python-fu script

2008-05-10 Thread David Gowers
On Sun, May 11, 2008 at 7:27 AM, Joao S. O. Bueno <[EMAIL PROTECTED]> wrote:
>> The drawable you are passing looks just right. But doesn't the
>> resynthesizer PDB procedure take run-mode as its first parameter?
>>
> When caling PDB stuff from a python plug-in, the run-mode
> parameter is always omited and assumed to be "non-interactive"

For the sake of completeness, I'll mention that you *can* use other
run modes, by specifying the kwarg 'run_mode'
like this

pdb.plug_in_gauss (i, i.layers[0], 4, 4, 1, run_mode = 0)

^^^
Brings up the normal interactive dialog.
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] python-fu script

2008-05-10 Thread Joao S. O. Bueno
On Sat 10 May 2008 11:00:57 am peter kostov wrote:
> Hello,
>
> I am trying to write a python script. The problematic part of it is:
>
> --- snip ---
>
> def run_resynthesize(image, drawable, vtileable=1, htileable=1):
>   defalut_args = (0, 0, 0, 0, 0.50, 0.12, 30, 200)
>   args = list(defalut_args)
>
>   pdb.plug_in_resynthesizer(image,drawable,vtileable,htileable,*args)
>
> def create_tileable(location, file_type_search, create_nmap,
> texture_name, normal_map_name, save_as_type, new_img_location):
>   images = get_images(file_type_search, location)
>   num_images = len(images)
>   for i in range(num_images):
>   image = pdb.gimp_file_load(images[i]['image_file'],
> images[i]['image_file'])
>
>   #drawable = PF_DRAWABLE
>   drawable = pdb.gimp_image_get_active_drawable(image)
>   #print drawable
>   run_resynthesize(image,drawable,1,1)
>
>
> --- snip ---
>
> I am getting a window listig several errors like this:
>
> Procedure 'gimp-drawable-width' has been called with an invalid ID for
> argument 'drawable'. Most likely a plug-in is trying to work on a layer
> that doesn't exist any longer.

Hi. You should check the parameters passed to the resynthesizer plug-in
I'd recomend testing it with one image from the python console, and check if 
the same error is raised

Once you have an image object, you can get it's top layer with
image.layers[0]  - no need to call pdb.gimp_image_get_active_drawable 

To work, from the python console, on an image already open in gimp, just
make a call to gimp.image_list()   - it return a list of all open images as 
python objects.

js
-><-
>
> And an 'RuntimeError: execution error' message on the console.
>
> I have googled, but not managed to find any answer :(
>
> How should I get the 'drawable' and what exactly should I feed to the
> resynthesize plug-in as 'DRAWABLE'?
>
> Please, please help!
>
> Kind regards,
>
> Peter


___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] python-fu script

2008-05-10 Thread Joao S. O. Bueno
On Sat 10 May 2008 12:45:09 pm Sven Neumann wrote:
> Hi,
>
> On Sat, 2008-05-10 at 17:00 +0300, peter kostov wrote:
> > Procedure 'gimp-drawable-width' has been called with an invalid ID for
> > argument 'drawable'. Most likely a plug-in is trying to work on a layer
> > that doesn't exist any longer.
> >
> > And an 'RuntimeError: execution error' message on the console.
> >
> > I have googled, but not managed to find any answer :(
> >
> > How should I get the 'drawable' and what exactly should I feed to the
> > resynthesize plug-in as 'DRAWABLE'?
>
> The drawable you are passing looks just right. But doesn't the
> resynthesizer PDB procedure take run-mode as its first parameter?
>
When caling PDB stuff from a python plug-in, the run-mode
parameter is always omited and assumed to be "non-interactive"


>
> Sven
>
>
> ___
> Gimp-user mailing list
> Gimp-user@lists.XCF.Berkeley.EDU
> https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] python-fu script

2008-05-10 Thread Sven Neumann
Hi,

On Sat, 2008-05-10 at 17:00 +0300, peter kostov wrote:

> Procedure 'gimp-drawable-width' has been called with an invalid ID for 
> argument 'drawable'. Most likely a plug-in is trying to work on a layer 
> that doesn't exist any longer.
> 
> And an 'RuntimeError: execution error' message on the console.
> 
> I have googled, but not managed to find any answer :(
> 
> How should I get the 'drawable' and what exactly should I feed to the 
> resynthesize plug-in as 'DRAWABLE'?

The drawable you are passing looks just right. But doesn't the
resynthesizer PDB procedure take run-mode as its first parameter?


Sven


___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] Python Script-Fu

2008-01-12 Thread David Gowers
Hi,

On Jan 11, 2008 12:06 AM, J Figueroa G - Gmail <[EMAIL PROTECTED]> wrote:
>
>
> Interesting input of Javier Perez, a member of the Hispanic Language
> Community of GIMP - www.gimp.org.es
> A Python Script-Fu for creation of "timetables" custom; more information
There is no such thing as a Python Script-Fu. Script-Fu is one
interface to GIMP's PDB; PyGimp is another. that is their only
relation.
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] Python Script-Fu

2008-01-12 Thread Owen
On Thu, 10 Jan 2008 08:36:09 -0500
"J Figueroa G - Gmail" <[EMAIL PROTECTED]> wrote:

> Interesting input of Javier Perez, a member of the Hispanic Language 
> Community of GIMP - www.gimp.org.es 
> A Python Script-Fu for creation of "timetables" custom; more information 
> here: http://www.javielinux.com/130-Creando_calendarios_en_Gimp.htm
> Download Here: http://www.javielinux.com/python/script-gimp-python.tar.gz



I am not sure why you would want to create an image of a calendar, but I have 
made an englishfied version at 
http://members.pcug.org.au/~rcook/Gimp/calendar.py 


Owen
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] python-fu and menus.

2007-04-16 Thread Michael Schumacher
John R. Culleton wrote:

> The only entry on the python submenu is sphere.py, which was there when I 
> started. 

They do not necessarily show up there - scripts and plug-ins can
register themselves in any menu they want (and with 2.3, an increasing
number of context menus as well)

Thus the register calls is what you have to look for in the scripts.

HTH,
Michael

-- 
GIMP > http://www.gimp.org  | IRC: irc://irc.gimp.org/gimp
Wiki > http://wiki.gimp.org | .de: http://gimpforum.de
Plug-ins > http://registry.gimp.org |
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] python-fu and menus.

2007-04-16 Thread Andrew
Renan Birck Pinheiro wrote:
> Em Seg, 2007-04-16 às 16:43 -0400, John R. Culleton escreveu:
>   
>> They were picked 
>> up as new plugins during the startup display but I still can't find 
>> them on a menu. 
>> 
>
> Then I don't know. Strange issue.
>
>   
I have the same problem, also Slackware 11, Gimp 2.3.13.

Andrew
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] python-fu and menus.

2007-04-16 Thread Renan Birck Pinheiro
Em Seg, 2007-04-16 às 16:43 -0400, John R. Culleton escreveu:
> They were picked 
> up as new plugins during the startup display but I still can't find 
> them on a menu. 

Then I don't know. Strange issue.

Since sphere.py shows up, it doesn't seem to be an issue with Python-fu
interpreter.

Do you get any strange output when running GIMP from a terminal?

___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] python-fu and menus.

2007-04-16 Thread John R. Culleton
On Monday 16 April 2007 16:28, Renan Birck Pinheiro wrote:
> Em Seg, 2007-04-16 às 12:14 -0400, John R. Culleton escreveu:
> > There are several python-fu scripts installed but they don't show
> > up under the xtn menu or anyplace else I can find when running
> > Gimp.
>
> Did you put them in ~/.gimp-2.3/plugins and chmod +x them?
No. I had expected them to be picked up just as the script-fu plug-ins 
were. I did what you suggested and restarted Gimp. They were picked 
up as new plugins during the startup display but I still can't find 
them on a menu.  The only entry on the python submenu is sphere.py, 
which was there when I started. 

-- 
John Culleton
Able Indexing and Typesetting
Precision typesetting (tm) at reasonable cost.
Satisfaction guaranteed. 
http://wexfordpress.com



_
Need personalized email and website? Look no further. It's easy
with Doteasy $0 Web Hosting! Learn more at www.doteasy.com
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] python-fu and menus.

2007-04-16 Thread Renan Birck Pinheiro
Em Seg, 2007-04-16 às 12:14 -0400, John R. Culleton escreveu:
> 
> There are several python-fu scripts installed but they don't show up 
> under the xtn menu or anyplace else I can find when running Gimp. 

Did you put them in ~/.gimp-2.3/plugins and chmod +x them?



___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] Python

2007-01-01 Thread Mukund
Hi John

John R. Culleton wrote:
> I downloaded, compiled and installed gimp2.3.13, followed by the obligatiory 
> copy of xsane to the plug-ins directory. It would be nice if this could be 
> included in the gimp distribution. 
> 
> On the subject of plug-ins, I have python on my system but not some GTK 
> fragment that Gimp wants. So I did a configure excluding Python. I am 
> assuming that there are script-fu etc. scripts avialable to cover the 
> functionality of most Python scripts.  Is there something important that I am 
> missing by not having Python?

By not having the Python bindings built, you lose the ability to script
GIMP using Python, and hence lose the use of any scripts which are
written in Python. That's pretty much it.


Kind regards,

Mukund

-- 
Banu -- Free software science and engineering
http://www.banu.com/



signature.asc
Description: OpenPGP digital signature
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] Python/Assigned shortcuts...

2006-12-14 Thread Sven Neumann
Hi,

On Thu, 2006-12-14 at 10:54 -0500, jbaker wrote:

> 1) Using python, is there a way to call the "Save keyboard shortcuts 
> now" function thats already built-in...
> 2) Is there a way (with python) to have Gimp read menurc/controllerrc 
> again ?

No and no.


Sven


___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] python problem with gimp-2.3.12 / win32

2006-11-09 Thread Sven Neumann
Hi,

On Thu, 2006-11-09 at 08:51 +0100, lode leroy wrote:
> I'm having problems with the python support in gimp-2.3.12...
> 
> When I run the script "Xtns->Python-Fu->Test->Sphere",
> it works perfectly when I close the generated window in between tests.
> 
> When I leave the new window open, the python plugin locks up after clicking 
> the "OK" button.
> 
> Is this a know problem, or am I doing something wrong?

Consider 2.3.12 to be broken for the Windows platform. The next
development snapshot should fix this issue.


Sven


___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: Re: [Gimp-user] Python-fu

2006-06-26 Thread Michael Schumacher
Von: "Joao S. O. Bueno Calligaris" <[EMAIL PROTECTED]>

> You can download and install gimp 2.3.9, pygtk, python-pango bindings, 
> and then it should work.

I want to add the you do not have to uninstall 2.2 in order to try GIMP 2.3 -  
actually it is recommended to keep 2.2 installed and use it for production work.


HTH,
Michael
-- 


Echte DSL-Flatrate dauerhaft für 0,- Euro*!
"Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] Python-fu

2006-06-26 Thread Joao S. O. Bueno Calligaris
On Sunday 25 June 2006 10:16 pm, Ben Conley wrote:
> I am trying to install the 'Inpaint' Python-Fu on GIMP 2.2.11 on
> Win32, but can't seem to do it.  I have Python (the newest version;
> just downloaded it last week).  Does anyone know how to get this to
> work?


You won't.
Python Fu doe snot work on windows with gimp 2.2

Just the development branch of the gimp has support for Python-fu 
under windows. 

You can download and install gimp 2.3.9, pygtk, python-pango bindings, 
and then it should work.

JS
-><-

___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] Python and Windows XP

2006-03-09 Thread Massimo
Michael Schumacher ha detto...

> It is part of the 2.3 installers. In order to be able to select
> it, it might be neccessary to have Python 2.4 and a matching pygtk
> installed.

I have downloaded and installed these packages:

http://easynews.dl.sourceforge.net/sourceforge/gimp-win/gtk+-2.8.13-setup.zip
http://www.python.org/ftp/python/2.4.2/python-2.4.2.msi
http://www.pcpm.ucl.ac.be/~gustin/win32_ports/binaries/pygtk-2.8.4-1.win32-py2.4.exe
http://www.pcpm.ucl.ac.be/~gustin/win32_ports/binaries/pycairo-1.0.2-1.win32-py2.4.exe
http://internap.dl.sourceforge.net/sourceforge/gimp-win/gimp-2.3.7-setup.exe

But gimp-python doesn't work.

-- 
|- Massimo ;-) ---> http://maq.altervista.org <-|(o-  POWERED |
|- BABYLON 5 -> http://babylon5.altervista.org <|(/)_ BY LINUX|
|- STARGATE --> http://sg1screw.altervista.org <|And the sky  |
|WHAT DO YOU WANT?> http://morden.deviantart.com <--|full of stars|
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] Python and Windows XP

2006-02-23 Thread Paul Waldo
On Wednesday 22 February 2006 5:11 pm, Colin Brace wrote:
> On 2/21/06, Demetrius Jones <[EMAIL PROTECTED]> wrote:
> > I was wondering if someone could point out how I am supposed to get the
> > Gimp 2.3.6 to recognize that I have python installed on the computer so
> > that I may be able to use py fu scripts
>
> I too am wondering. At my first attempt to compile 2.3.7, make spat
> back that it couldn't find "Python headers" and the only way forward
> was to run it with "--disable-python".
>
> I have gimp-python 2.2.8-2 installed. I thought maybe it needed a
> developer package, but "aptitude search gimp | grep python | grep dev"
> didn't turn up anything.
>
> --
>   Colin Brace
>   Amsterdam

Have you tried pyGtk?  I have these packages installed on my system:
python-gtk2
python-gtk2-dev
python2.4-gtk2

Paul
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] Python and Windows XP

2006-02-22 Thread Matt Gushee

Colin Brace wrote:


I too am wondering. At my first attempt to compile 2.3.7, make spat
back that it couldn't find "Python headers" and the only way forward
was to run it with "--disable-python".

I have gimp-python 2.2.8-2 installed. I thought maybe it needed a
developer package, but "aptitude search gimp | grep python | grep dev"
didn't turn up anything.


Most likely the missing headers are those for Python itself. Did you 
look for python-devel?


--
Matt Gushee
The Reluctant Geek: http://matt.gushee.net/rg/
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] Python and Windows XP

2006-02-22 Thread Colin Brace
On 2/21/06, Demetrius Jones <[EMAIL PROTECTED]> wrote:

> I was wondering if someone could point out how I am supposed to get the Gimp
> 2.3.6 to recognize that I have python installed on the computer so that I
> may be able to use py fu scripts

I too am wondering. At my first attempt to compile 2.3.7, make spat
back that it couldn't find "Python headers" and the only way forward
was to run it with "--disable-python".

I have gimp-python 2.2.8-2 installed. I thought maybe it needed a
developer package, but "aptitude search gimp | grep python | grep dev"
didn't turn up anything.

--
  Colin Brace
  Amsterdam
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] Python and Windows XP

2006-02-22 Thread Michael Schumacher
> Von: Carol Spears <[EMAIL PROTECTED]>

> On Tue, Feb 21, 2006 at 12:56:24PM -0800, Demetrius Jones wrote:
> > I was wondering if someone could point out how I am supposed to get the
> Gimp 2.3.6 to recognize that I have python installed on the computer so
> that I may be able to use py fu scripts

> the answer to your question is that you need to install the gimp-python
> module.  
> 
> i have no idea how to build this for XP.

It is part of the 2.3 installers. In order to be able to select it, it might
be neccessary to have Python 2.4 and a matching pygtk installed.


HTH,
Michael

-- 
DSL-Aktion wegen großer Nachfrage bis 28.2.2006 verlängert:
GMX DSL-Flatrate 1 Jahr kostenlos* http://www.gmx.net/de/go/dsl
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] Python and Windows XP

2006-02-21 Thread Carol Spears
On Tue, Feb 21, 2006 at 12:56:24PM -0800, Demetrius Jones wrote:
> I was wondering if someone could point out how I am supposed to get the Gimp 
> 2.3.6 to recognize that I have python installed on the computer so that I may 
> be able to use py fu scripts
>   
python loads modules.  gimp-fu is a python module that needs to be
built.

the answer to your question is that you need to install the gimp-python
module.  

i have no idea how to build this for XP.

carol

___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] python, plugins and interfaces

2006-01-26 Thread PAEDER Vincent
Hello again, ok sorry I had never realised that about top posting.
I actually found a solution by trial and error. That is:
 - send the image as string through the socket
 - create an image containing a layer of the right size in gimp and get the 
pixel region and assign my string to it
 - and it works ...
If you are wondering what the hell I'm trying to achieve, actually I'm trying 
to integrate gimp plugins into a tool that I made to build cursor themes for 
X11 and that I called gursor maker. And the goal would be just to be able 
create lets say the "cursor modifier" "ripple me that" which uses the ripple 
plugin of gimp with given parameters and then by drag and drop on the different 
cursors apply it transparently.
Thanks for your proposal I think I'll rebuild my interface anyway and I'll make 
some kind of automatic interface builder to integrate the options in a panel.
Cheers,
V. Paeder
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] python, plugins and interfaces

2006-01-26 Thread Carol Spears
On Thu, Jan 26, 2006 at 02:59:57PM +0100, Vincent Paeder wrote:
> Thanks for your answer. I did have a look, but I'm not sure we mean the
> same thing. Anyway, I got a second problem which may be more
> compromising than the absence of user interface. That is, my tool stores
> pictures as gdk pixbufs, and I'd like to send them to an arbitrary gimp
> plugin to be treated. Can I do that somehow?
> 
i suggest that you first read this:
http://en.wikipedia.org/wiki/Top_post

then understand that most of the people on the gtk+ list do not like
top-posting from email and then ask that (and your other questions like
this) on that list.  i can find the url to subscribe if you need for me
to.

carol

___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] python, plugins and interfaces

2006-01-26 Thread Vincent Paeder




Thanks for your answer. I did have a look, but I'm not sure we mean the same thing. Anyway, I got a second problem which may be more compromising than the absence of user interface. That is, my tool stores pictures as gdk pixbufs, and I'd like to send them to an arbitrary gimp plugin to be treated. Can I do that somehow?

On Mon, 2006-01-23 at 13:09 -0800, Carol Spears wrote:


On Mon, Jan 23, 2006 at 09:08:58PM +0100, PAEDER Vincent wrote:
> hello everybody,
> is it possible to open the plugin interface with a python command? My goal would be to run gimp in batch mode from the command line (from another python script actually) and still be able to configure the plugin I invoke with the interactive interface.
> For now, I can launch gimp and call a dedicated plugin which communicates with the main application through a socket. I can obtain the list of installed plugins along with their detailed properties, thus I could rebuild an appropriate interface. But it would be great if I didn't have to.
> Does anyone have a suggestion?

i actually put something about that on my web site, i forget where
though:
http://carol.gimp.org/gimp/scripting/

carol







signature.asc
Description: This is a digitally signed message part
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] python, plugins and interfaces

2006-01-23 Thread Carol Spears
On Mon, Jan 23, 2006 at 09:08:58PM +0100, PAEDER Vincent wrote:
> hello everybody,
> is it possible to open the plugin interface with a python command? My goal 
> would be to run gimp in batch mode from the command line (from another python 
> script actually) and still be able to configure the plugin I invoke with the 
> interactive interface.
> For now, I can launch gimp and call a dedicated plugin which communicates 
> with the main application through a socket. I can obtain the list of 
> installed plugins along with their detailed properties, thus I could rebuild 
> an appropriate interface. But it would be great if I didn't have to.
> Does anyone have a suggestion?

i actually put something about that on my web site, i forget where
though:
http://carol.gimp.org/gimp/scripting/

carol

___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] Python-fu script for Placement of pasted selections

2005-12-30 Thread Joao S. O. Bueno Calligaris
On Friday 30 December 2005 04:04 am, Joao S. O. Bueno Calligaris 
wrote:
> On Thursday 29 December 2005 08:43 am, Tristan Miller wrote:
> > 1. Store the top left coordinates (x,y) of the selection.
> > 2. Copy the selection.
> > 3. Switch to the second image.
> > 4. Paste.
> > 5. Move the selection to (x,y).
> > 6. Anchor the selection.


Hi,

Tristam wrote me to note that there are conflicting licencing terms in 
the "sel_transfer.py" script I attached in the previous e-mail.

Indeed, it is intended as public domain - but there are remaining 
comment lines from the plug-in I templated it from that say it is 
GPLed. 

It is such  simple script that I doubt anyone will actually be 
expanding on it. But in any case it is intended as public domain.

Regards,
JS
-><-
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] python-fu grid plugin

2004-10-28 Thread Sven Neumann
Hi,

"Joao S. O. Bueno Calligaris" <[EMAIL PROTECTED]> writes:

> I managed to fix it.
> I attached a patch to bug #156750 - 
> http://bugzilla.gnome.org/show_bug.cgi?id=156750
>
> The plug-in was just ignoring the alpha parameter passed in the calls, 
> letting in grabage in it's place. So, sometimes the call would work, 
> sometimes don't.

The fact that the script passes garbage is not exactly the fault of
the plug-in. Colors passed via the PDB do actually have an alpha
channel. But since this is a seldomly used feature and since the grid
API is documented to use the opacity values, your fix seems like the
right thing to do.


Sven
___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user


Re: [Gimp-user] python-fu grid plugin

2004-10-28 Thread Joao S. O. Bueno Calligaris
On Thursday 28 October 2004 16:19, Joao S. O. Bueno Calligaris wrote:
> On Thursday 28 October 2004 15:00, Fernando Sancho wrote:
> > Hi
> >
> > I'm having problems with pdb.plug_in_grid. This function works ok
> > if applied on an indexed image, but fails (only draws vertical
> > lines) if applied on a RGB image.
> >
> > What's wrong?
>
> EEEK!! :-)
>
> Bug in the grid.c plug-in.
> I will see if it is something I can fix - anyway, if you want, you
> acan open a bugzilla bug for it already - bugzilla.gnome.org
>
> I already could verify it is not python-fu related - it is a
> problem in the plug-in itself.
>
> Regards,
>   JS
>   -><-
>

I managed to fix it.
I attached a patch to bug #156750 - 
http://bugzilla.gnome.org/show_bug.cgi?id=156750

The plug-in was just ignoring the alpha parameter passed in the calls, 
letting in grabage in it's place. So, sometimes the call would work, 
sometimes don't.

Regards,
JS
-><-
___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user


Re: [Gimp-user] python-fu grid plugin

2004-10-28 Thread Joao S. O. Bueno Calligaris
On Thursday 28 October 2004 15:00, Fernando Sancho wrote:
> Hi
>
> I'm having problems with pdb.plug_in_grid. This function works ok
> if applied on an indexed image, but fails (only draws vertical
> lines) if applied on a RGB image.
>
> What's wrong?
EEEK!! :-)

Bug in the grid.c plug-in.
I will see if it is something I can fix - anyway, if you want, you 
acan open a bugzilla bug for it already - bugzilla.gnome.org

I already could verify it is not python-fu related - it is a problem 
in the plug-in itself.

Regards,
JS
-><-

>
> Regards.
> ___
> Gimp-user mailing list
> [EMAIL PROTECTED]
> http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user
___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user


Re: [Gimp-user] Python-Fu scripts update

2004-01-14 Thread Przemyslaw Gawronski
Sorry, to bother, I learned that the scripts are read when they are ran.

-- 
Przemek Gawronski   gawronskip#at#wp#dot#pl
Linux Registered User 239544UIN:8358522
http://counter.li.org/
___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user