home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: Graphics / Graphics.zip / gif_text.zip / mkgiftxt.sre < prev    next >
Text File  |  1999-05-01  |  14KB  |  441 lines

  1. <!--
  2. 26 April 1999: This is front end to MkGifTxt; and MkGifTxt invokes GIF_TEXT.
  3.  
  4. Depending on whether you are running MKGifTxt as a cgi-bin script, or
  5. an SRE-http addon, you may need to change the "ACTION" in the <FORM element
  6. below:
  7.  
  8. 1) For CGI-BIN:
  9.       FORM ACTION="/cgi-bin/mkgiftxt" method="get"
  10. 2) For SRE-http addon:
  11.       FORM ACTION="/mkgiftxt" method="get"
  12.  
  13. Note: If your server uses something other then "/cgi-bin/scriptname to
  14.       invoke cgi-bin scripts:,
  15.         *  enter the appropriate prefix, 
  16.         *  you will need to make a few  changes in MkGifTxt.CMD
  17.         * if you are not using frames, you might want to get rid of the target="help_frame"
  18.           attribute in the <FORM element 
  19.  
  20. -->
  21.  
  22. <HTML> 
  23. <HEAD>
  24. <TITLE>GIF_TEXT: A Graphics Text Generator</TITLE>
  25.  
  26. <script language="javascript">
  27. <!-- 
  28. var isme=1
  29. // -->
  30. </script>
  31.  
  32. </HEAD>
  33.  
  34. <BODY> 
  35.  <h2> <img src="gif_text.gif" alt="GIF_text" valign="baseline" height=50 width=200> 
  36. Create a GIF file to display your message</h2>
  37.  
  38. <A NAME="entry">This </A>demonstrates GIF_TEXT: a <em>text-to-GIF</em> 
  39. message generator</em>
  40. <table>
  41. <tr><td valign="middle"><em>Or, would you<br> like to ...</em>
  42. <td>
  43. <table><tr>
  44. <td> <A HREF="mkgiftx2.htm#samples" target="help_frame">
  45.      see samples of the alphabytes and backgrounds?</A>
  46. <br>  run a special <a href="mkbutton.htm"> button generator</a>? 
  47. <br>list installed <a href="/mkgiftxt?list=fonts"  target="help_frame">alphabyte and complete fonts</a>
  48. <br>list installed <a href="/mkgiftxt?list=slides"  target="help_frame">color slides</a>
  49. </td>
  50. <td> read a <a href="mkgiftx3.htm#describe" 
  51.               target="help_frame">short description of the options</a>?
  52. <br> use the <a href="mkgifrm.htm">frames/javascript </a> enabled version?
  53. <br> list available <a href="/mkgiftxt?list=ttffonts"  target="help_frame">TTF fonts</a>
  54. <br>  list installed <a href="/mkgiftxt?list=backgrounds"  target="help_frame">backgrounds </a>
  55. </td>
  56. </table>
  57. </td>
  58. </table>
  59.  
  60. <a name="formtop"><hr width=30%></a>      
  61.  
  62.                 <! ---------------------***********------------------------ -->
  63.        <!-- You may need to modify this line (see note at the top of this file) -->
  64.  
  65. <FORM name="daform" ACTION="/mkgiftxt" METHOD="POST" target="help_frame">
  66.  
  67.                 <! ---------------------***********------------------------ -->
  68.  
  69.  
  70. <table>
  71. <tr>
  72. <Td nowrap><a name="messagebox">Enter</a> the <b>message</b>:</td>
  73. <td ><TEXTAREA NAME="text"  rows=2 cols=60></textarea></td>
  74. <td><INPUT TYPE="submit" VALUE="Generate the .GIF">
  75. <tr>
  76. <td>Hints:</em></td>
  77. <td colspan=2>
  78.  <code>$t</code>=time;
  79.  <code>$d</code>=date; 
  80.  <code>$B</code>=rectangle;
  81.  <code>$N</code>=new line; 
  82.  <code>$F(fontname)</code>=switch fonts; 
  83.  <code>$#nnn;</code> = ascii code
  84. </td>
  85. </table>
  86.  
  87. <br>
  88. <table>
  89. <Tr>
  90. <th rowspan=2><a name="stylein">You can ...</a>  </th>
  91. <td> use message options stored in a  <a href="mkgiftx3.htm#stylefileinfo" 
  92.        target="help_frame"><b>style file</b></a>:<input type="text" name="style" size=20>
  93. </td>
  94. <tr><td><b>or  </b>use this form to specify the options ....</em>
  95. <code>(<input type="checkbox" name="STYLE_SAVE" value=1>and save these options to
  96. a style file?)</code>.
  97. </td>
  98. </table>
  99.  
  100. <table border=0>
  101. <tr bgcolor="#ba977">
  102. <td align="left" width="33%"><a name="fontsin">Select an alphabyte</a> font</td>
  103. <td align="left"> or a TTF font </td>
  104. <td><a name="backgroundin"> <em>Optional </em></a> background</a>
  105. and <a name="colorslidein1"> color slide </a></td>
  106.  
  107. <tr valign="top">
  108. <td valign="top" >
  109. <SELECT NAME="FONT" SIZE=11>
  110. <OPTION SELECTED value="Enviro">Enviro (L1C)
  111. <OPTION value="Revue">Revue (1C)
  112. <OPTION value="hobo"> Hobo (1C)
  113. <OPTION value="mandarin"> Mandarin (1C)
  114. <OPTION value="stich"> Stitche  (1C)
  115. <OPTION value="logger"> Logger  (C)
  116. <OPTION value="andy01"> Drippy  (LC)
  117. <OPTION value="andy02"> Typewritter keys (C)
  118. <OPTION value="andy04"> Austere (C)
  119. <option value="fresnel"> Fresnel (L1)
  120. <option value="handwrit"> Handwriting (L1)
  121. <option value="twoturt"> Kids (L1)
  122. <option value="antelope"> Antelope (L1)
  123. <option value="epilog"> Epilog (L1)
  124. <option value="buttrfly"> Butterfly (L1)
  125. <option value="courier">Courier (L1)
  126. <option value="warpsans">WarpSans (L1)
  127. <option value="ghosty"> Ghosty (1C)
  128. <option value="fuzgreen"> Fuzzy green (1C)
  129. <option value="purpwhit"> Purple & white (1C)
  130. <option value="greyred">Grey & red (1C)
  131.  
  132. </SELECT>
  133. <br><font size="-1">
  134. (Key): L=includes lower-case, <br>1=Includes numbers,<br> C=Color (not b/w)</font><br>
  135.  
  136. <!-- if you install a new alphabyte or complete font, just add an
  137. OPTION containing is subdirectory as a "value"  -->
  138. </td>
  139.  
  140. <td>
  141. <br> <a href="mkgiftx3.htm#ttffontnames" target="help_frame"> 
  142. Select a TTF font</a>:<br>
  143.  <input type="text" name="TTF_FONT" size=30 >
  144. <br> and it's size 
  145.  <input type="text" name="TTF_FONT_SIZE" size=6 value=0>
  146. <br>(0=do NOT use TTF font)
  147.  
  148. </td>
  149.  
  150. <Td valign=top align="middle">
  151.  
  152. <SELECT NAME="back" size=3>
  153. <OPTION SELECTED value="">No Background
  154. <OPTION value="backs/pap_gry2"> Grey paper
  155. <OPTION value="backs/aurora"> An aurora
  156. <OPTION value="backs/Marble2">Marble
  157. <OPTION value="backs/relief1"> Cardboardy
  158. <OPTION value="backs/clouds"> Clouds
  159. <OPTION value="backs/satin"> Satin
  160. <OPTION value="backs/wood_ylw"> Yellowish wood
  161. <OPTION value="backs/bluebump"> Bumpy blue
  162. <OPTION value="backs/white"> White stone
  163. <OPTION value="backs/linen"> A linen texture
  164. <OPTION value="backs/tan"> A  Tan
  165.  
  166. </SELECT><br>
  167.  
  168. <INPUT TYPE=checkbox NAME="back_scale" VALUE="1">
  169. <a href="mkgiftx3.htm#backgroundscaleinfo" target="help_frame">Scale</a>
  170. the background?  (default is to <u>tile</u>)
  171.  
  172. <hr>
  173. <p>
  174.  
  175. <SELECT NAME="slide" SIZE=3>
  176. <OPTION SELECTED value="">No color slide
  177. <OPTION value="slides/b_c_b"> Blue-cyan-blue
  178. <OPTION value="slides/rainbow"> A rainbow
  179. <OPTION value="slides/r_o_r"> Red-orange-red
  180. <OPTION value="slides/fadeout"> Fadeout 
  181. <OPTION value="slides/tiedye"> Tie die 
  182. <OPTION value="slides/b_w_b"> Black-white-black 
  183. <OPTION value="slides/slide1"> Orange-blue
  184. <OPTION value="slides/oranges"> Orange colors 
  185. <OPTION value="slides/o_b_o"> Orange blue orange
  186. <OPTION value="slides/bar75"> Yellow/black  (2d)
  187. <OPTION value="slides/aback023"> Cloudy (2d)
  188. <OPTION value="slides/backg20"> Purple lightning (2d)
  189. <OPTION value="slides/backg16"> Bumpy grey (2d)
  190. </SELECT>
  191. <br><em>Or you can specify</em><a href="#slide_size">your own color slide</a> 
  192. </td>
  193. </tr>
  194. <tr >
  195. <td colspan=2  bgcolor="#bbaa99">
  196. <a name="imagesizein">   </a>
  197. Message width: <INPUT TYPE="text" NAME="Width"  VALUE="0"  SIZE=6 MAXLENGTH=6>
  198.  and height: <INPUT TYPE="text" NAME="height"  VALUE="0"  SIZE=6 MAXLENGTH=6>
  199. <em>(in pixels)</em></td>
  200. <td bgcolor="#ddcca9">
  201.  <em>A value of 0 for either width or height means:<u>Use as many pixels as needed</u></em></td>
  202. </tr>
  203. </table>
  204.  
  205.  
  206. <table >
  207. <Tr valign="top">
  208. <td><INPUT TYPE="submit" name="submitmid" VALUE="Generate the .GIF">
  209. <td><a name="saveitin"> <input type=checkbox name="saveit" value=1></a>
  210. <em>Check here if you intend  <a href="#saveit" target="help_frame"> to download this image.</a></em>
  211. <br> <input type=checkbox name="verboseout" value=0>
  212. <em>Check here for non-verbose output</em>
  213.  
  214. </td></table>
  215.  
  216. <p>
  217.  
  218. <hr width=30%>
  219. <center>
  220. <em>The following options are less important (if you don't fill them in,
  221. default values will be used):</em><p>
  222. </center>
  223.  
  224. <table border=1><td align="center" colspan=3>
  225. <a name="dofont2">
  226. <em>You can specify other fonts, backgrounds, and color slides...</em></a></td>
  227. <tr>
  228. <td>
  229.   <a href="mkgiftx3.htm#fontnames" target="help_frame"> specify a  font:</a><br>
  230.    <input type="text" name="font2" width=20>
  231.   <br><font size="-1">
  232.      Select a font-other then those listed in the selection box)</font>
  233. </td>
  234.  
  235. <td>
  236. Choose a <a href="mkgiftx3.htm#slidefile" target="help_frame">a color-slide
  237.           file:</a><br>
  238.         <input type="text" name="slide2" width=32 >
  239. <br><font size="-1">Enter the name of a GIF file, or a URL to a GIF file</font>
  240. </td>
  241.  
  242. <td>Choose <a href="mkgiftx3.htm#backgroundinfo" target="help_frame">background file</a>:<br>
  243.  <input type="text" name="back2" size=32 >
  244. <br><font size="-1">Enter the name of a GIF file, or a URL to a GIF file</font>
  245. </td>
  246. </table>
  247.  
  248. <a name="alignin"><p></a>
  249. <u>Vertical Alignment</u> (character in "character box"):
  250. <INPUT TYPE=RADIO NAME="v_align" VALUE="T" checked>Top   ||
  251. <INPUT TYPE=RADIO NAME="v_align" VALUE="M">Middle  ||
  252. <INPUT TYPE=RADIO NAME="v_align" VALUE="B">Bottom 
  253. <br>
  254. <u>Line Justification </u>(for multiple line messages):
  255. <INPUT TYPE=RADIO NAME="line_j" VALUE="L">Left   ||
  256. <INPUT TYPE=RADIO NAME="line_j" VALUE="C" checked>Center  ||
  257. <INPUT TYPE=RADIO NAME="line_j" VALUE="R">Right 
  258. <p>
  259.  
  260. <table border=1>
  261. <tr>
  262. <th><em><a name="charscalein">Width & height</em> <br>scale factors</a></th>
  263.  
  264. <td>
  265. <SELECT NAME="x_scale" SIZE=3>  
  266. <option selected value="">No width scaling
  267. <option value="1+2+1">Center is wide
  268. <option value="1.5+0.7+1.5">Center is narrow
  269. <option value="0.8+1.1+2"> End is wide
  270. <option value="1.2+1.0+0.6"> End is narrow
  271. </select>
  272. </td>
  273. <td>
  274. <SELECT NAME="y_scale" SIZE=3>  
  275. <option selected value="">No height scaling
  276. <option value="1+2+1">Center is high
  277. <option value="1.5+0.7+1.5">Center is short
  278. <option value="0.8+1.1+2"> End is high
  279. <option value="1.2+1.0+0.6"> End is short
  280. </select>
  281. </td>
  282. </tr></table>
  283. <p>
  284.  
  285.  
  286. <TABLE border=1><TR>
  287. <td><b>Offset</b> the image; <br>
  288. place a <b>frame</b> around it</td> <td>   </td>
  289. <td>
  290. Right offset <input type="text" name="X_OF" value=0 size=5> 
  291. <br>
  292. Left/Right frame <input type="text" name="X_FR" value=1 size=5> 
  293. </td>
  294. <td>
  295. Down offset  <input type="text" name="Y_OF" value=0 size=5> <br>
  296. Top/Bottom frame <input type="text" name="Y_FR" value=1 size=5> 
  297. </td>
  298. </table>
  299.  
  300. <p>
  301. <table border=1>
  302.  
  303. <tr>
  304. <td valign="top">
  305. <b><a name="colorslidein2">Color slide</a></b> horizontal fit:
  306. <menu compact>
  307. <li><INPUT TYPE=RADIO NAME="slide_h" VALUE="T">Tile  
  308. <li><INPUT TYPE=RADIO NAME="slide_h" VALUE="F" checked>Stretch
  309. </menu>
  310. </td>
  311. <td>
  312. <b>Color slide </b> vertical fit:<menu compact>
  313. <li><INPUT TYPE=RADIO NAME="slide_v" VALUE="N" checked>Same slide for all rows  
  314. <li><INPUT TYPE=RADIO NAME="slide_v" VALUE="T">Tile  
  315. <li><INPUT TYPE=RADIO NAME="slide_v" VALUE="F">Stretch 
  316. </menu>
  317. </td> 
  318. <tr> <td >
  319. Color slide measured from (blank=left edge, or a space delimited pair of 0 to 1 fractions): 
  320. <input type="text" name="SLIDE_C" size=13 maxlength=40>
  321. </td>
  322. <td>
  323. Method for computing color slide distance: 
  324. <SELECT NAME="figdist_t" SIZE=1>  
  325. <option value="1">Smoothest
  326. <option value="3" SELECTED>Recommended
  327. <option value="2">Faster
  328. <option value="4">Fastest
  329. </select>
  330.  
  331. </td>
  332. <tr>
  333. <td>
  334. Color slide threshold: 
  335. <menu compact>
  336. <li><input type=radio name="slide_t" value="P1" checked > Non 0 pixels 
  337. <li><input type=radio name="slide_t" value="C40"> Any color > 40 
  338. <li><input type=radio name="slide_t" value="B1:20:50:200">Fade avg color, 1 to 200
  339. </menu>
  340. </td>
  341. <td>
  342. Color slide probability: 
  343. <menu compact>
  344. <li><input type=radio name="slide_p" value="1" checked > Always use 
  345. <li><input type=radio name="slide_p" value="0+0+0.2+0.6+0.9+1+1"> Increasing probability 
  346. <li><input type=radio name="slide_p" value="1+1+0.8+0.5+0.2+0+0"> Decreasing probability 
  347. </menu>
  348.  
  349. </td>
  350. <tr valign="top"><td colspan=2>
  351. <table>
  352. <td valign="top"> <a name="slide_size">Number of colors in user-defined color slide</a><br>
  353. (0=do not define)
  354. <input type=text name="SLIDE_S" value="0"></td>
  355. <td>
  356. Color slide RGB intensity parameters (<code>0.0=0</code>, <code>1.0=255</code>) (space delimited)<br>
  357. Red: <input type=text name="SLIDE_R" size=20 maxlength=50><br>
  358. Green: <input type=text name="SLIDE_G" size=20 maxlength=50><br>
  359. Blue: <input type=text name="SLIDE_B" size=20 maxlength=50>
  360. </td>
  361.  
  362. </table>
  363. </td>
  364.  
  365. </table>
  366.  
  367. <p>
  368.  
  369. <table>
  370. <tr valign="top"><td>
  371. <b><a name="maskfilein">Use a</a> <a href="mkgiftx3.htm#maskinfo" target="help_frame">mask file</a></b>: 
  372. <input type="text" name="maskin" size=32 maxlength=150>
  373. <td> <input type="checkbox" name="MASKSC" value=1>Scale mask (otherwise, tile)?
  374. <br>
  375.  <input type="checkbox" name="MASK_R" value=1>Reverse mask?
  376. <br>
  377.  Mask threshold (pixel value)= <input type="text" name="MASK_T"
  378.                                 value="0" size=4 maxlength=4 >
  379. </td>
  380. </table>
  381. <p>
  382.  
  383. <table>
  384. <tr>
  385. <td><a name="basicolorsin">Background</a> <b>color</b> (6-hex-digits):<INPUT TYPE="text" NAME="backc"  SIZE=8 MAXLENGTH=8>,
  386. <td>Text-color  (6-hex-digits):<INPUT TYPE="text" NAME="textc"  SIZE=8 MAXLENGTH=8>
  387. <tr><td colspan=2 align="center"> Examples: <font color="#000000"> 000000=black</font>, <font color="#ffffff">
  388. ffffff=white</font>, <font color="#FF0000">FF0000=red</font>
  389. <font color="#00FFFF">00EF9d=Cyan</font>
  390. <tr><td>
  391. Transparent color index (0 to 255, -1 for <u>no transparent index</u>):
  392.   <INPUT TYPE="text" NAME="trans"  VALUE=""  SIZE=4 MAXLENGTH=4>
  393. </table>
  394.  
  395. <P>
  396. <table border=0>
  397. <th><a name="timefmtin">Time Format</a></th> <th>Date Format</th>
  398. <tr>
  399. <td>
  400. <SELECT NAME="time_fmt" SIZE=2>
  401. <OPTION value="L"> Long: 16:54:22.12000 (perhaps)
  402. <OPTION SELECTED value="N" >24 hour: 16:54:22
  403. <OPTION value="H"> Hour : 16
  404. <OPTION value="M"> Minutes : 1014
  405. <OPTION value="S"> Seconds: 60682
  406. <OPTION value="C"> Civil : 4:54pm
  407. <OPTION value="1"> Civil: 4:54pm (use am and pm characters)
  408. </SELECT>
  409. </td>
  410. <td>
  411. <SELECT NAME="date_fmt" SIZE=2>
  412. <OPTION selected value="N"> Internet standard: 27 Aug 1988 (perhaps)
  413. <OPTION value="D"> Days : 240
  414. <OPTION value="E"> European: 27/08/88
  415. <OPTION value="M"> Month: August
  416. <OPTION value="B"> Basedate: 725975
  417. <OPTION value="O"> Ordered: 88/08/27
  418. <OPTION value="S"> Sorted: 19880827
  419. <OPTION value="U"> US: 08/27/88
  420. <OPTION value="W"> Weekday: Saturday
  421. </SELECT>
  422. </td>
  423. </table>
  424.  
  425. <br>
  426.  
  427. <table><tr><td><INPUT name="submitbot" TYPE="submit" VALUE="Generate the .GIF">
  428.             <td><INPUT TYPE="submit" VALUE="Generate the .GIF">
  429.             <td><INPUT TYPE="submit" VALUE="Generate the .GIF">
  430. </table>
  431.  
  432. </form>
  433.  
  434. <br>
  435. <hr>
  436.  
  437.  
  438. </BODY>
  439. </HTML>
  440.  
  441.