home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Spanish Scene 4
/
SpanishScene4.iso
/
Programas
/
EsteveBoix_Ind
/
tablePlugv12.lha
/
tablePlug12
/
rx
/
gfxcon_dt.tpx
< prev
next >
Wrap
Text File
|
1999-10-11
|
963b
|
40 lines
/*
gfxcon_dt.tpx v1.0 © 1999 Esteve Boix
Uses GFXCon to scale the images and save them in JPG
format.
The tool tp_dtc is used to use the datatypes to convert
the image to IFF, so GFXCon can load it without problems.
Args: SIZEX SIZEY JPEG_COMPRESSION
Where:
SIZEX, SIZEY Size in pixels of the thumbnail
JPEG_COMPRESSION Well...
You may have to edit this file in order to adapt the filename of GFXCon
executable.
*/
options results
parse arg maxsizex maxsizey compression infile outfile
address command
'stack 25000'
/* Load the image and save it with tp_dtc */
address command
'tableplug:tools/tp_dtc >nil: <nil: '||infile||' ram:tP_temp_image.iff'
'c:gfxcon_68020 '||infile||' TO '||outfile||' BOXFIT '||maxsizex||' '||maxsizey||' FORMAT JPEG NOPROGRESS QUALITY '||compression
/* Now delete the iff image created by tp_dtc */
address command
'delete >nil: <nil: ram:tP_temp_image.iff'