Re: comments in gifs

2000-06-11 Thread Gunjan Kapoor

i know it's old (very old). but i cannot force the sysadmins to upgrade it
if they're reluctant to do so. is there a workaround with version 1.1.4
itself?



On Fri, 9 Jun 2000, Marc Lehmann wrote:

 On Fri, Jun 09, 2000 at 09:52:01AM +0530, Gunjan Kapoor [EMAIL PROTECTED] wrote:
  
  yes i've tried a terminating 0. also tried generating the string with
  sprintf but to no avail. i'm using version 1.1.4.
 
 Well... How many years is that version old??
 
 -- 
   -==- |
   ==-- _   |
   ---==---(_)__  __   __   Marc Lehmann  +--
   --==---/ / _ \/ // /\ \/ /   [EMAIL PROTECTED] |e|
   -=/_/_//_/\_,_/ /_/\_\   XX11-RIPE --+
 The choice of a GNU generation   |
  |
 
 




Re: comments in gifs

2000-06-08 Thread Gunjan Kapoor

thanks for the tip. however, the gimp-comment parasite does not seem to
work with gifs. i've tried it with other file formats (apart from gifs)
and it worked fine. what could be the problem.
tia
Gunjan



On Tue, 6 Jun 2000, Marc Lehmann wrote:

 On Tue, Jun 06, 2000 at 10:24:11AM +0530, Gunjan Kapoor [EMAIL PROTECTED] wrote:
  
  how does one add comments to gif images with scripting ?
 
 By setting the gimp-comment parasite of the image (see docs/parasites.txt)
 bafore saving.
 
 -- 
   -==- |
   ==-- _   |
   ---==---(_)__  __   __   Marc Lehmann  +--
   --==---/ / _ \/ // /\ \/ /   [EMAIL PROTECTED] |e|
   -=/_/_//_/\_,_/ /_/\_\   XX11-RIPE --+
 The choice of a GNU generation   |
  |
 
 




Re: comments in gifs

2000-06-08 Thread Marc Lehmann

On Thu, Jun 08, 2000 at 04:42:18PM +0530, Gunjan Kapoor [EMAIL PROTECTED] wrote:
 thanks for the tip. however, the gimp-comment parasite does not seem to
 work with gifs. i've tried it with other file formats (apart from gifs)
 and it worked fine. what could be the problem.

This is strange, the code is there (and seems to work here). However,
I just found (and fixed) a bug in that the gif plug-in expected a
zero-terminated string there at all times (still not right, I would expect
the comment to be an opaque binary object, if the format supports it).

Did you include a terminating zero when setting gimp-comment?

-- 
  -==- |
  ==-- _   |
  ---==---(_)__  __   __   Marc Lehmann  +--
  --==---/ / _ \/ // /\ \/ /   [EMAIL PROTECTED] |e|
  -=/_/_//_/\_,_/ /_/\_\   XX11-RIPE --+
The choice of a GNU generation   |
 |



Re: comments in gifs

2000-06-08 Thread Marc Lehmann

On Thu, Jun 08, 2000 at 05:43:59PM +0100, "Adam D. Moss" [EMAIL PROTECTED] wrote:
  This is strange, the code is there (and seems to work here). However,
  I just found (and fixed) a bug in that the gif plug-in expected a
  zero-terminated string there at all times
 
 When the commant parasite was originally specified it was
 specified explicitly as being zero-terminated: no bug.  A slap
 on the wrist for changing the spec out from under the software,
 though.

Ouch! But the original definition did not make much sense, so it was
better to fix it ;)

-- 
  -==- |
  ==-- _   |
  ---==---(_)__  __   __   Marc Lehmann  +--
  --==---/ / _ \/ // /\ \/ /   [EMAIL PROTECTED] |e|
  -=/_/_//_/\_,_/ /_/\_\   XX11-RIPE --+
The choice of a GNU generation   |
 |



Re: comments in gifs

2000-06-08 Thread Gunjan Kapoor


yes i've tried a terminating 0. also tried generating the string with
sprintf but to no avail. i'm using version 1.1.4.
what is the value for the 'flags' supposed to be ? i.e the parasite is
passed as a reference [parasite_name, flags, parasite_value].
Gunjan

On Thu, 8 Jun 2000, Marc Lehmann wrote:

 On Thu, Jun 08, 2000 at 04:42:18PM +0530, Gunjan Kapoor [EMAIL PROTECTED] wrote:
  thanks for the tip. however, the gimp-comment parasite does not seem to
  work with gifs. i've tried it with other file formats (apart from gifs)
  and it worked fine. what could be the problem.
 
 This is strange, the code is there (and seems to work here). However,
 I just found (and fixed) a bug in that the gif plug-in expected a
 zero-terminated string there at all times (still not right, I would expect
 the comment to be an opaque binary object, if the format supports it).
 
 Did you include a terminating zero when setting gimp-comment?
 
 -- 
   -==- |
   ==-- _   |
   ---==---(_)__  __   __   Marc Lehmann  +--
   --==---/ / _ \/ // /\ \/ /   [EMAIL PROTECTED] |e|
   -=/_/_//_/\_,_/ /_/\_\   XX11-RIPE --+
 The choice of a GNU generation   |
  |
 
 




Re: comments in gifs

2000-06-06 Thread Marc Lehmann

On Tue, Jun 06, 2000 at 10:24:11AM +0530, Gunjan Kapoor [EMAIL PROTECTED] wrote:
 
 how does one add comments to gif images with scripting ?

By setting the gimp-comment parasite of the image (see docs/parasites.txt)
bafore saving.

-- 
  -==- |
  ==-- _   |
  ---==---(_)__  __   __   Marc Lehmann  +--
  --==---/ / _ \/ // /\ \/ /   [EMAIL PROTECTED] |e|
  -=/_/_//_/\_,_/ /_/\_\   XX11-RIPE --+
The choice of a GNU generation   |
 |