Chess Image 2 (EPD to PNG converter)

Discussion of chess software programming and technical issues.

Moderator: Ras

User avatar
Roland Chastain
Posts: 743
Joined: Sat Jun 08, 2013 10:07 am
Location: France
Full name: Roland Chastain

Chess Image 2 (EPD to PNG converter)

Post by Roland Chastain »

Hello everybody.

I remade my command-line tool for converting an EPD string to a PNG picture. (The first version was announced here.)

The new version creates chessboard picture directly from a TrueType font. The path to the TTF file and other settings are stored in an INI file. For now the program works only with chess fonts by Armando Hernandez Marroquin.

Usage: chessimage2 FEN

It creates a picture named chessimage2.png.

Image

Git repository: https://github.com/rchastain2/chess-image-2
Linux and Windows binaries: https://msegui.net/downloads/chess/

The Windows binary hasn't been tested in real condition. I am not sure that it works.

Maybe someone will find it useful...
Qui trop embrasse mal étreint.

Author of Eschecs, a simple UCI chess GUI written in Pascal.
User avatar
Look
Posts: 390
Joined: Thu Jun 05, 2014 2:14 pm
Location: Iran
Full name: Mehdi Amini

Re: Chess Image 2 (EPD to PNG converter)

Post by Look »

Hi,

Interesting tool. But in your supplied image, white and black pieces seem the same.
Farewell.
User avatar
Roland Chastain
Posts: 743
Joined: Sat Jun 08, 2013 10:07 am
Location: France
Full name: Roland Chastain

Chess Image 2 260915b (Make black pieces... black)

Post by Roland Chastain »

Look wrote: Tue Sep 15, 2026 3:16 pm Interesting tool. But in your supplied image, white and black pieces seem the same.
Fixed, thank you. :wink:
Qui trop embrasse mal étreint.

Author of Eschecs, a simple UCI chess GUI written in Pascal.
mar
Posts: 2995
Joined: Fri Nov 26, 2010 2:00 pm
Location: Czech Republic
Full name: Martin Sedlak

Re: Chess Image 2 (EPD to PNG converter)

Post by mar »

hi Roland,

first - it looks absolutely amazing, the dashed board is so cool!
great choice of colors too, even though it's subtle

also - anti-grain geometry, great choice of a library (RIP the original author). subpixel antialiased rendering is tricky and agg is a masterpiece in design and engineering.

tried on Fedora, had to install a couple of deps (didn't find libfreetype6 out of the box), but now it works fine.

sadly the Windows version doesn't load the font for some reason and renders using a text font