![]() Pyvips : The module wraps the libvips image processing library. chess_gif is using imageio for creating the GIFs from frames generated using PIL. It is cross-platform, runs on Python 3.5 , and is easy to install. Imageio : Imageio is a Python library that provides an easy interface to read and write a wide range of image data, including animated images, video, volumetric data, and scientific formats. PIL is the Python Imaging Library by Fredrik Lundh and Contributors. Python Imaging Library : Pillow is the friendly PIL fork by Alex Clark and Contributors. ![]() chess_gif uses python-chess for parsing pgn files and also for creating a board represenation of the chess games. Python-chess : python-chess is a pure Python chess library with move generation, move validation and support for common formats. The GIF should be generated in your current working directory. Run the following code to create a GIF ! > from chess_gif.gif_maker import Gifmaker > obj = Gifmaker ( pgn_file_path, h_margin = 20, v_margin = 80 ) > obj. This is how a sample PGN file looks like. Add the path to gifsicle.exe file to your PATH variable.Ĭheck out the documentation: chess_gif docs Usage Example On Windows you will need to download and install the appropriate port of the library for your OS. On Linux you will need to install gifsicle using apt-get as follows: sudo apt-get install gifsicle ![]() While running the installation, on MacOS the setup will automatically install gifsicle using Brew. For further details, refer pyvip's installation guide. Linux and macOS users need not worry about this and can simply skip this step. You can download the binaries by clicking here. Windows users need to download the pyvip's binaries and add vips-dev-x.y\bin to their PATH variable for its installation. pip install chess_gifĬhess_gif requires pyvips and pygifsicle as its dependencies: ![]() chess_gif allows users to create highly customizable and optimized GIFs from the PGN files of their chess games. npm ERR! Please include the following file with any support request: npm ERR! C:\cygwin64\home\dmoore\projects\amgen-sites\webcms2-core-mirror\npm-debug.Chess_gif is a python library for easily making GIFs of chess games in PGN (Portable Game Notation) format which is the standard plain text format for recording chess games. npm ERR! Tell the author that this fails on your system: npm ERR! node lib/install.js npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs gifsicle npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls gifsicle npm ERR! There is likely additional logging output above. npm ERR! If you do, this is most likely a problem with the gifsicle package, npm ERR! not with npm itself. npm ERR! Make sure you have the latest version of node.js and npm installed. Imagemin-gifsicle " npm ERR! node v6.2.1 npm ERR! npm v3.9.5 npm ERR! code ELIFECYCLE npm ERR! postinstall: `node lib/install.js ` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the postinstall script 'node lib/install.js'. Ode.exe " "C: \\Users \\dmoore \\AppData \\Roaming Npm WARN notsup Not compatible with your operating system or architecture: WARN No repository field. Npm WARN optional Skipping failed optional dependency /chokidar/fsevents: postinstall C: \cygwin64 \home \dmoore \projects \sites \webcms2-core-mirror \node_modules \gifsicleĪt exports._errnoException (util.js:1007:11)Īt ChildProcess.spawn (internal/child_process.js:302:11)Īt exports.spawn (child_process.js:383:9)Īt C: \Users \app \projects \sites \webcms2-core-mirror \node_modules \bin-check \index.js:22:12Īt C: \Users \app \projects \sites \webcms2-core-mirror \node_modules \executable \index.js:27:4 ![]()
0 Comments
Leave a Reply. |