Coder Social home page Coder Social logo

sgf_to_gif's Introduction

SGF to GIF

  • Converts the main line of an SGF file to an animated GIF.
  • Can split the output into a series of GIFs (e.g. move 1-100, 101-200, etc)
  • Can handle a directory (non-recursive).
  • Optional coordinates and move numbers.
  • Adjustable speed and board size.
  • Stores the animation as a series of changes to keep filesize down.
  • Written in Golang, using standard library only.
  • Try ./sgf_to.gif.exe --help for options.

Example GIF

sgf_to_gif's People

Contributors

fohristiwhirl avatar rooklift avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

sgf_to_gif's Issues

How to use

Excuse me, I have tried to install golang and build your project, however, the sgf_to_gif.exe window flashes and disappears automatically.

support board color change

nice to have the parameter to change board color

e.g.
sgf_to_gif --board_color='brown'
or
whatever value, like in your code seem using rgba format

thanks and best regards

License?

Hey there,

I'm interested in using your code to generate gifs from SGF files. Is that alright?

Thanks,
Riley

support more resolution

image below is standard stone width = 22 (when upload to youtube it detect sd)
image

image below when set standard stone width = 55 (when upload to youtube it detect hd)
image

problem

  1. the image quality can't go more than hd quality when upload to youtube, already test set stone width = 220 and 999,
    the result is same goes to hd quality, the file size is same when set stone width = 220 and 999 (with the same *.sgf source file)
  2. when set the stone width, why the fonts size on coordinate and move number goes smaller ?

expectation

  1. image quality can goes higher than hd
  2. the fonts size will adapt to stone width so it still can be read

best regards

[Feature request]add opinions

There are some opinions in hex2010/sgf2gif:

  1. Delay: the speed to display.
  2. How many moves to show numbers โ€”โ€” I don't think this is very important, only the last is enough.
  3. The cell width.
  4. split has two ways:
  • * and number, example: *50
  • split by space, for example:
    default
    1-51:
    dragons 001-051
    50-101:
    dragons 050-101
    100-151:
    dragons 100-151
    151-307:
    dragons 150-307

Thank you very much!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.