[prev in list] [next in list] [prev in thread] [next in thread] 

List:       imagemagick-user
Subject:    Re: [magick-users] PPM and Pipes
From:       Charles Yates <charles.yates () pandora ! be>
Date:       2002-07-02 8:47:52
[Download RAW message or body]

On Mon, 2002-07-01 at 23:31, Bob Friesenhahn wrote:
> 
> It seems like you are using a reasonable approach.  There is a cost to
> starting up the utility for each image frame though.

Indeed :-/.

> Programming ImageMagick is not difficult if you use the Perl or C++
> APIs.

I agree (I've used it elsewhere), but in this specific case, I wanted a
means to access arbitrary functionality of the full API at runtime,
rather than just those specific methods I've coded around. To my mind,
the simplest means of doing that is via a textual specification of the
transformations to a parser (hence the use of the command line
kludging). 

The new conjure application interests me greatly because of this, and it
would be nice if that functionality was exposed via an API too. It would
be particularly useful if it had methods that allowed generation of the
xml document based on non-xml formated strings which are similar to the
command line, ie: something like:

for each frame {
..load frame into image ...
conjure.NewTransform();
conjure.SetTransform( "geometry 720x576!" );
conjure.SetTransform( "gravity Center" );
conjure.SetTransform( "draw text 0,0 'blah'" );
... etc - transforms are pulled from the GUI obviously... 
conjure.Transform( image );
...output image
}

OK.. kind of vague, but something along those lines. I'm playing with a
similar construct in my code for generating the convert command line,
with the loop doing calculations of positions [and other numeric
parameters] based on the frame number so that text and images can be
moved and resized throughout the animation.. in the short term, this
does allow fairly rapid development (and blindingly inefficient
execution ;-)) of new transformations as I don't have to parse the
inputs or write handlers for each case. The application is a video
editor [in case that wasn't obvious :-)]. 

Anyway, many thanks for your reply,

Charlie

_______________________________________________
Magick-users mailing list
Magick-users@imagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic