Software for exporting an epd file to images?

Discussion of anything and everything relating to chess playing software and machines.

Moderators: hgm, Rebel, chrisw

James Constance
Posts: 358
Joined: Wed Mar 08, 2006 8:36 pm
Location: UK

Software for exporting an epd file to images?

Post by James Constance »

Can anyone recommend software for exporting the positions in an epd file to image files (jpg, bmp, png...) ?

Thanks

James
Vinvin
Posts: 5228
Joined: Thu Mar 09, 2006 9:40 am
Full name: Vincent Lejeune

Re: Software for exporting an epd file to images?

Post by Vinvin »

James Constance wrote:Can anyone recommend software for exporting the positions in an epd file to image files (jpg, bmp, png...) ?

Thanks

James
The Arena interface ( http://www.playwitharena.com/ ) exports as BMP : menu position -> export.

This old utility does the job too : http://www.rebel.nl/epd2diag.htm
Albert Silver
Posts: 3019
Joined: Wed Mar 08, 2006 9:57 pm
Location: Rio de Janeiro, Brazil

Re: Software for exporting an epd file to images?

Post by Albert Silver »

James Constance wrote:Can anyone recommend software for exporting the positions in an epd file to image files (jpg, bmp, png...) ?

Thanks

James
I do not doubt there are many, but you could do this also with ChessBase Reader, the free version. Paste a FEN (it does not read EPD files), and then at the top, click on File, then Save and Save Position. The diagram appearance and size it saves will correspond to the one on screen. The format is PNG.

http://en.chessbase.com/pages/support
"Tactics are the bricks and sticks that make up a game, but positional play is the architectural blueprint."
James Constance
Posts: 358
Joined: Wed Mar 08, 2006 8:36 pm
Location: UK

Re: Software for exporting an epd file to images?

Post by James Constance »

Many thanks Vincent and Albert. I was hoping for something that did the whole epd file at once to multiple images, but I expect this is unlikely.
User avatar
yurikvelo
Posts: 710
Joined: Sat Dec 06, 2014 1:53 pm

Re: Software for exporting an epd file to images?

Post by yurikvelo »

James Constance wrote:Many thanks Vincent and Albert. I was hoping for something that did the whole epd file at once to multiple images, but I expect this is unlikely.
batch conversion can be easily made in simple script, using any command line converter, e.g. https://pypi.python.org/pypi/fen

If you plan using it for http sites, there is no need to generate static image files, just generate FEN-links <img src=http://fen2png.example.com?fen=8/8/1p4Q ... p/4n2k/2q5 w - - 6 92>

http://www.fen-to-image.com/image/36/do ... P/RNBQKBNR

Image
James Constance
Posts: 358
Joined: Wed Mar 08, 2006 8:36 pm
Location: UK

Re: Software for exporting an epd file to images?

Post by James Constance »

Thanks, Yuri.
User avatar
Guenther
Posts: 4610
Joined: Wed Oct 01, 2008 6:33 am
Location: Regensburg, Germany
Full name: Guenther Simon

Re: Software for exporting an epd file to images?

Post by Guenther »

James Constance wrote:Can anyone recommend software for exporting the positions in an epd file to image files (jpg, bmp, png...) ?

Thanks

James
http://rebel13.nl/windows/epd2diag.html
Ferdy
Posts: 4833
Joined: Sun Aug 10, 2008 3:15 pm
Location: Philippines

Re: Software for exporting an epd file to images?

Post by Ferdy »

James Constance wrote:Can anyone recommend software for exporting the positions in an epd file to image files (jpg, bmp, png...) ?

Thanks

James
Have a look on this thread.
http://talkchess.com/forum/viewtopic.ph ... 08&t=59255

Jesse mentioned
https://sourceforge.net/projects/fen2eps/

This works for me.

Image

eps viewer can be downloaded from here.
http://epsviewer.org/download.aspx
Jesse Gersenson
Posts: 593
Joined: Sat Aug 20, 2011 9:43 am

Re: Software for exporting an epd file to images?

Post by Jesse Gersenson »

James Constance wrote:whole epd file at once to multiple images
Here is a quick script which uses fen2eps and pgn-extract.

Get fen2eps https://sourceforge.net/projects/fen2ep ... n2eps/1.1/
and compile it with

Code: Select all

g++ fen2eps.cpp -o fen2eps
Install pgn-extract, currently it's in the Debian repositories.

Code: Select all

apt-get install pgn-extract
Convert pgn file to list of fens and then convert each fen to a numbered png file.

Code: Select all

# add fen position as a comment after each line and save as output.pgn
pgn-extract --fencomments -o output.pgn Aronian.pgn

# extract the FENs to a file named 'fenlist'. this is an uqly hack which uses 
# \n to add new lines...which'll only work in some shells.
cat output.pgn | sed 's/&#123;/\nxxxxx/g'|sed 's/&#125;.*/yyyyy/g' | grep xxxxx | sed -e 's/xxxxx //g' -e 's/ yyyyy//g' | grep -v xxxxx > fenlist

# run a while loop, once for each line in fenlist, send the FEN to fen2eps and output
# &#91;incrementing number&#93;.eps and convert this to &#91;incrementing number.png 

index=1;cat fenlist | while read list; do (( index++)); echo "$list" | ./fen2eps > "$index".eps && convert "$index".eps "$index".png;done
James Constance
Posts: 358
Joined: Wed Mar 08, 2006 8:36 pm
Location: UK

Re: Software for exporting an epd file to images?

Post by James Constance »

Thanks, Ferdinand and Jesse - I'll give it a try. :)