|
From: Christian B. <bar...@gm...> - 2006-03-15 22:22:54
|
Hi Paulo, * On 2006-03-13 Paulo J. Matos (poc...@gm...) wrote: > [...] > Is it possible in SCID to export a given board state to PNG (or jpeg, > or any other format) to put it on a HTML page? If not, how one usually > presents boards on webpages? in addition to "epd2html" which was mentioned in another mail, I would suggest to take a look at PmWikis ChessMarkup (which is very cool ;-) http://www.pmwiki.org/wiki/Cookbook/ChessMarkup Although the tool you find on this page is designed to be used together with PmWiki (IMHO a very good wiki software), you can make use of it for every non-PmWiki website. In that case it will work like "epd2html" -- or so I guess. All you have to do is calling the script "chessboard.php" with a given position as an argument. Again you have to use Forsyth-Edwars-Notation (FEN [1]). http://www.pmwiki.org/pmwiki/pub/chess/chessboard.php?fen=rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR That scripts returns the position defined bei ?fen=xxx as a .gif file. There are some other options, namely ?fen=[position] A game position in FEN notation ?w=[width] Width of GIF image (default 240 pixels) ?h=[height] Height of GIF image (default same as width) ?light=[rrggbb] Color of light squares (default "ffffff") ?dark=[rrggbb] Color of dark squares (default "cccccc") ?border=[rrggbb] Border color (default "999999") To use this tool for webpages directly, just insert in your page: <img src="http://www.pmwiki.org/pmwiki/pub/chess/chessboard.php?fen=rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR"> Of course it would be good to install a copy of "chessboard.php" on your own server (if it allows PHP-scripts). Ciao Christian [1] http://www.wikipedia.com/wiki/FEN |