Re: using a parasite in a python import/export script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> I found that the png exporter plugin uses "parasites" for this, that sounds
> interesting. Now, trying to read my parasite is a problem, I need to read it
> before the call to register but at that time, the GIMP system doesn't seem
> to be ready yet. Just doing:
>         print gimp.parasite_list()
> in the script will print out the error:
>         LibGimpBase-ERROR **: gimp_wire_write_msg: the wire protocol has not
> been initialized
>         aborting...
>         (gimp:17350): LibGimpBase-WARNING **: gimp: gimp_wire_read(): error
> to the console.
>
> Is there any other way to achieve what I want? (Without saving it to a
> well-defined file in the user's home)
>


Works for me.  Here is a capture from my python console:

GIMP 2.6.4 Python Console
Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)]
>>> print gimp.parasite_list()
('exif-orientation-rotate', 'testing', 'jpeg-save-defaults')
>>>
_______________________________________________
Gimp-developer mailing list
Gimp-developer@xxxxxxxxxxxxxxxxxxxxxx
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux