On Tue, Apr 04, 2000 at 12:34:01AM -0700, Mihail Baba <[EMAIL PROTECTED]> wrote:
>    This is how the script should work: Load one image (jpeg), scale it
>    down ,then save it to a new file, after which the
>    image is deleted, and the next image file is read in and process...
>    until there are image to process.

Please note, that with imagemagick you whole script becomes this
shell-command:

find directory -name "*.jpg" -o -name "*.jpeg" -o ... | 
   xargs mogrify -geometry "100x100!"

>    The whole thing works well only once. When trying to load next image
>    file, this ugly error message pops-up:
>    "file_jpeg_load: procedural database execution failed at..."

This is most probably because the gimp cannot load the file (your script
seems correct). Try to put

Gimp::set_trace(-1);    # before the call the jpeg_load
Gimp::set_trace(0);     # after the call

in your script(*). This will dump all arguments to the gimp_jpeg_load function
to the screen. Most probably the path you think is given to jpeg_load is not
really the path jpeg_load actually gets.

(*) of course, a simple print "$image_name\n" would suffice in this example,
but the trace functions are much more general.


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

Reply via email to