[Gimp-developer] prob with parasites and script-fu (fwd)

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

 



If this or my next post was forwarded to this list before then I apologise, 
I wasn't subscribed here before.

br.

---------- Forwarded message ----------
Date: Thu, 5 Feb 2004 23:30:01 +0100 (CET)
From: Irek Słonina <br@xxxxxxxxxxxx>
To: Gimp-user@xxxxxxxxxxxxxxxxxxxxxx
Subject: another prob with parasites and script-fu


My previous problem with parasites in script-fu has dissapeared
in new pre3 version (thanks Sven for URL to bugreport), but 
now I have one another: I tried to define "gimp-comment" parasite
as defined in devel-docs/parasites.txt as PERSISTENT, but this
causes an execution error of the script, as well as other
defines commented below, with which I have tried to run the
script:

(define (script-fu-xcf2gif infile outfile)
   (let*
       (
       	(img (car (gimp-file-load 1 infile infile)))
	(drawable (car (gimp-drawable-get-image img)))
;       (parasite (list "gimp-comment" GIMP_PARASITE_PERSISTENT "some comment"))
;       (parasite (list "gimp-comment" IMAGE_PERSISTENT "some comment"))
;       (parasite (list "gimp-comment" PERSISTENT "some comment"))
	(parasite (list "gimp-comment" 1 "some comment"))
       )
       (gimp-image-flatten img)
       (gimp-image-parasite-detach img "gimp-comment")
       (gimp-image-parasite-attachi img parasite)
       (gimp-image-convert-indexed img 1 0 256 0 1 "")
       (file-gif-save 1 img drawable outfile outfile 1 0 0 0)
    )
)

from libgimpbase/gimpparasite.h:
#define GIMP_PARASITE_PERSISTENT 1
so I have tried to use direct the value of it instead of define, 
this works (script is executed successfully) but comment is not
saved in gif:

[ireks@brightstar ufki]$ identify -verbose blokada.gif|grep comment
[ireks@brightstar ufki]$ 

Is this a bug or am I doing something wrong?
If I should rather go to gimp-devel or somewhere else group please let me know.

br.

[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