Re: [Gimp-user] pdb error and perl-fu'ing

2001-07-01 Thread pcg

On Sun, Jul 01, 2001 at 08:20:19PM +0200, [EMAIL PROTECTED] wrote:
> some more perl-fu'ing (is there a specific perl-fu mailinglist?)

yes, see gimp.pages.de for details.

> Is there anyway to test if a given is a valid gimp image file?

no, and gimp can crash if you feed it garbage. not that often anymore but
it can still happen.

> advanced, how do you trap pdb-errors?

just like any other perl exception, using eval { xxx }.

-- 
  -==- |
  ==-- _   |
  ---==---(_)__  __   __   Marc Lehmann  +--
  --==---/ / _ \/ // /\ \/ /   [EMAIL PROTECTED]  |e|
  -=/_/_//_/\_,_/ /_/\_\   XX11-RIPE --+
The choice of a GNU generation   |
 |
___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user



[Gimp-user] pdb error and perl-fu'ing

2001-07-01 Thread mobo

hi 
some more perl-fu'ing (is there a specific perl-fu mailinglist?)

When you try to gimp_image_load an invalid image file you get 
scaledir: gimp_file_load: procedural database execution failed at
scalestuff.lib line 5 (DIE)
and the program dies.

Is there anyway to test if a given is a valid gimp image file? or, more
advanced, how do you trap pdb-errors?
morten
--
E-Mail: morten <[EMAIL PROTECTED]>
Date: 01-Jul-2001
Time: 20:16:23

Currently working hard for the LAI at INSA-lyon
--
___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user