Hi,

here is the tcf that I've quicly made for managing these processes with
imagemagick (sorry for the french parameters names...)
You only need to have the .bat in your webserver dir, the imagemagick
executables should be at any place where the Witango service have execution
rights.

basically a tcf contain one or more methods that are called with parameters
that are used for execution, to call a method from a class file (tcf stands
for Tango Class File), you need to instanciate it (simply drop the object
from the editor workspace to your application file) in a local scoped
variable, so you can call methods from your file (by dropping a method from
the workspace in your application file)

for a simple exemple see testimage.taf that call the resize method from the
image.tcf with arbitrary parameters, you need to correct the paths that are
in the .bat files to concord with your imagemagick path.

Hope this help!

Gauthier

> ----- Original Message -----
> From: "Fogelson, Steve" <[EMAIL PROTECTED]>
> To: "Multiple recipients of list witango-talk" <[EMAIL PROTECTED]>
> Sent: Wednesday, June 05, 2002 4:40 PM
> Subject: RE: Snippets: was: Witango-Talk: Jump back two pages?
>
>
> > Gauthier,
> >
> > Thanks for the response. I am new to using Tango, so please bear with
me.
> >
> > I downloaded Version 5.4.6 of ImageMagick for Win2k. I unzipped it, but
> > confused about the install. Do I just need to copy the entire directory
> > ImageMagick-5.4.6 to my web server and that is it?
> >
> > Also, I haven't used any tcf files yet, just taf. Do you have a sample I
> > could look at.
> >
> > Someone told me I could just use the follow code in a taf to accomplish
> > this:
> >
> > example.taf:
> >     Assign action:
> >         local    bat_var    "c:\windows\"
> >     External action:
> >         Type: Command Line (Windows and UNIX)
> >         Command: <@WEBROOT><@APPFILEPATH>myfile.bat
> >         Environment Variables:
> >             PARAM    @@local$bat_var
> >
> > myfile.bat:
> >     set SOME_PATH=%PARAM%
> >
> > I believe the bat file would include something like this:
> >
> > C:\path\to\convert.exe -geometry 100x100 source.jpg target.gif
> >
> > Thanks for the help.
> >
> > Steve
> >
> > -----Original Message-----
> > From: [Gauthier] [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, June 05, 2002 7:54 AM
> > To: Multiple recipients of list witango-talk
> > Subject: Re: Snippets: was: Witango-Talk: Jump back two pages?
> >
> >
> > Hi, sorry for the delay, just have reinstalled my computer,
> >
> > welcome on the list
> >
> > For the resize/crop process I use ImageMacick wich is absolutely free, I
> use
> > it within external calls, and that work great for me (I've attached the
> > original Jess Parker post)
> > see http://www.imagemagick.org/ for more infos
> > and http://www.dylanbeattie.net/magick/downloads.html to download the
> win32
> > binaries
> >
> > If you want to use it and need some help, feel free to contact me off
> list,
> > you can quickly work on a tcf that will wrok for all your process
> >
> > Hope this help
> >
> > Gauthier
> >
> > ----- Original Message -----
> > From: "Fogelson, Steve" <[EMAIL PROTECTED]>
> > To: "Multiple recipients of list witango-talk"
<[EMAIL PROTECTED]>
> > Sent: Tuesday, June 04, 2002 3:37 PM
> > Subject: Snippets: was: Witango-Talk: Jump back two pages?
> >
> >
> > > Dan,
> > >
> > > I am new to the list. You mention Ben has a group of snippets that are
> > > posted. Where do I access them?
> > >
> > > In particular, I want to resize a downloaded image to a standard size
> and
> > > also a thumbnail. It appears I will have to use some third party
> software
> > to
> > > do this. I am looking for some code that will process third party
> software
> > > within a taf and any recommendations on the 3rd party software to use.
> > >
> > > Troy had mentioned there was a thread on this list addressing this
issue
> > > some time back.
> > >
> > > Thanks
> > >
> > > Steve Fogelson
> > > Internet Commerce solutions
> > >
> > > -----Original Message-----
> > > From: Dan Stein [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, June 04, 2002 5:27 AM
> > > To: Multiple recipients of list witango-talk
> > > Subject: Re: Witango-Talk: Jump back two pages?
> > >
> > >
> > > Yep Ben's worked perfectly.
> > > Thanks to everyone who was up so late last night and helped me with
this
> > and
> > > the email validation.
> > >
> > > I am going to test the email validations and then decide which one
works
> > > best for us,
> > >
> > > When I'm done I'll compile them into a group of snippets and give them
> to
> > > Ben to post.
> > >
> > > Dan
> > >
> > >
> > >
> > > on 6/4/02 1:47 AM, Robert Garcia at [EMAIL PROTECTED] wrote:
> > >
> > > > No, Ben is right, it must be:
> > > >
> > > > <a href="javascript:history.go(-2)">Go Back 2</a>
> > > >
> > > > -1 goes back one, 1 goes forward one, etc.
> > >
> > > --
> > > Dan Stein
> > > Digital Software Solutions
> > > 799 Evergreen Circle
> > > Telford PA 18969
> > > Land: 215-799-0192
> > > Mobile: 610-256-2843
> > > FMP, WiTango, EDI,SQL 2000
> > > [EMAIL PROTECTED]
> > > www.dss-db.com
> > ________________________________________________________________________
> > TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
> >                 with unsubscribe witango-talk in the message body
> >
>

Attachment: Images.zip
Description: Zip compressed data

Reply via email to