RSS/Atom feed Twitter
Site is read-only, email is disabled

prob with parasites and script-fu (fwd)

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

3 of 3 messages available
Toggle history

Please log in to manage your subscriptions.

prob with parasites and script-fu (fwd) Irek S?onina 06 Feb 11:48
  prob with parasites and script-fu (fwd) Sven Neumann 06 Feb 13:16
   prob with parasites and script-fu (fwd) Carol Spears 06 Feb 21:25
Irek S?onina
2004-02-06 11:48:11 UTC (about 20 years ago)

prob with parasites and script-fu (fwd)

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
To: Gimp-user@lists.xcf.berkeley.edu 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.

Sven Neumann
2004-02-06 13:16:11 UTC (about 20 years ago)

prob with parasites and script-fu (fwd)

Hi,

Irek S?onina writes:

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

Well, I already answered your question on the gimp-user list. Perhaps we keep this thread there then.

Sven

Carol Spears
2004-02-06 21:25:08 UTC (about 20 years ago)

prob with parasites and script-fu (fwd)

hi, oops ...
On Fri, Feb 06, 2004 at 01:16:11PM +0100, Sven Neumann wrote:

Hi,

Irek S??onina writes:

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

Well, I already answered your question on the gimp-user list. Perhaps we keep this thread there then.

i suggested this. probably from experience i had several years ago.

sorry, carol